NovelIO


LittleEndian

Namespace: NovelFS.NovelIO.BinaryPickler
Parent Module: BinaryPickler

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

Functions and values

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

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 Little Endian byte order

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

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

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

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

decimalLittleEPU
Signature: BinaryPU<Decimal>

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

float32PU
Signature: BinaryPU<float32>

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

floatPU
Signature: BinaryPU<float>

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

int16PU
Signature: BinaryPU<int16>

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

int64PU
Signature: BinaryPU<int64>

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

intPU
Signature: BinaryPU<int32>

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

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

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

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

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

uint16PU
Signature: BinaryPU<uint16>

A pickler/unpickler pair (PU) for (unsigned) uint16s in Little Endian byte order

uint64PU
Signature: BinaryPU<uint64>

A pickler/unpickler pair (PU) for (unsigned) uint64s in Little Endian byte order

uintPU
Signature: BinaryPU<uint32>

A pickler/unpickler pair (PU) for (unsigned) uint32s in Little Endian byte order

utf16PU
Signature: BinaryPU<string>

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

utf32PU
Signature: BinaryPU<string>

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

Fork me on GitHub