1234567891011121314151617181920module 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);
}
Represents an ASN.1 INTEGER.
This type contains slices to exteral memory, so please be aware of data lifetimes.
| Name | Description |
|---|---|
| asInt |
Converts the raw bytes into a native integer. |
| fromDecoding |
Decodes the passed in ASN.1 content bytes. |
| fromNumberGC | |
| fromUnownedBytes |
Constructs an |
| rawBytes | |
| toString |