Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs Asn1Integer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module juptune.asn1.decode.bcd.encoding;

struct Asn1Integer
{
    /++ FUNCTIONS ++/
    
    /// Converts the raw bytes into a native integer. 
    Result asInt(IntT)(IntT result);
    /// Decodes the passed in ASN.1 content bytes. 
    Result fromDecoding(Asn1Ruleset ruleset)(MemoryReader mem, Asn1Integer result, Asn1Identifier ident);
    ///
    Asn1Integer fromNumberGC(T)(T number);
    /// Constructs an Asn1Integer using a slice to external memory - this memory containing the raw bytes used within an encoded ASN.1 record. 
    static Asn1Integer fromUnownedBytes(const ubyte[] bytes);
    ///
    const ubyte[] rawBytes();
    ///
    void toString(SinkT)(SinkT sink, int depth = 0);
    
}

Documentation

Represents an ASN.1 INTEGER.

This type contains slices to exteral memory, so please be aware of data lifetimes.

Functions

Name Description
asInt

Converts the raw bytes into a native integer.

fromDecoding

Decodes the passed in ASN.1 content bytes.

fromNumberGC
fromUnownedBytes

Constructs an Asn1Integerusing a slice to external memory - this memory containing the raw bytes used within an encoded ASN.1 record.

rawBytes
toString