NovelIO


BigEndian

Namespace: NovelFS.NovelIO.BinaryPickler
Parent Module: BinaryPickler

Primitive and combinator Pickler/Unpickler pairs that use Big Endian byte order

Functions and values

Function or valueDescription
alt tag ps
Signature: tag:('?7818 -> int32) -> ps:Map<int32,BinaryPU<'?7818>> -> BinaryPU<'?7818>
Type parameters: '?7818

Accepts a tagging function that partitions the type to be pickled/unpickled into two sets, then accepts a PU for each set. This permits creating PUs that might pickle one of several alternatives. The tag is stored in Big Endian byte order

array pa
Signature: pa:BinaryPU<'?7814> -> BinaryPU<'?7814 []>
Type parameters: '?7814

A pickler/unpickler pair (PU) for arrays which prefixes the length using in Big Endian byte order.

byteLengthPrefixed pu
Signature: pu:BinaryPU<'?7816> -> BinaryPU<'?7816>
Type parameters: '?7816

A pickler/unpickler pair (PU) that prefixes the byte length of the structure in Big Endian byte order

decimalPU
Signature: BinaryPU<Decimal>

A pickler/unpickler pair (PU) for decimals in Big Endian byte order

float32PU
Signature: BinaryPU<float32>

A pickler/unpickler pair (PU) for float32s in Big Endian byte order

floatPU
Signature: BinaryPU<float>

A pickler/unpickler pair (PU) for floats in Big Endian byte order

int16PU
Signature: BinaryPU<int16>

A pickler/unpickler pair (PU) for int16s in Big Endian byte order

int64PU
Signature: BinaryPU<int64>

A pickler/unpickler pair (PU) for int64s in Big Endian byte order

intPU
Signature: BinaryPU<int32>

A pickler/unpickler pair (PU) for ints in Big Endian byte order

list pa
Signature: pa:BinaryPU<'?7812> -> BinaryPU<'?7812 list>
Type parameters: '?7812

A pickler/unpickler pair (PU) for lists which prefixes the length using in Big Endian byte order.

optional pa
Signature: pa:BinaryPU<'?7820> -> BinaryPU<'?7820 option>
Type parameters: '?7820

A pickler/unpickler pair (PU) for option types in the Endianness in Big Endian byte order

utf16PU
Signature: BinaryPU<string>

A pickler/unpickler pair (PU) for unicode strings in big endian byte order. No byte order mark is encoded.

utf32PU
Signature: BinaryPU<string>

A pickler/unpickler pair (PU) for UTF-32 strings in big endian byte order. No byte order mark is encoded.

Fork me on GitHub