A more general LengthEncoded (arrays are no longer collections)
Format instance which encodes the collection by first writing the length of the collection as an int, then writing the collection elements in order.
Represents this type as 2 consecutive binary blocks of type T1.
Represents this type as 2 consecutive binary blocks of type T1..T2, relative to the specified way of decomposing and composing S as such.
Represents this type as 3 consecutive binary blocks of type T1.
Represents this type as 3 consecutive binary blocks of type T1..T3, relative to the specified way of decomposing and composing S as such.
Represents this type as 4 consecutive binary blocks of type T1.
Represents this type as 4 consecutive binary blocks of type T1..T4, relative to the specified way of decomposing and composing S as such.
Represents this type as 5 consecutive binary blocks of type T1.
Represents this type as 5 consecutive binary blocks of type T1..T5, relative to the specified way of decomposing and composing S as such.
Represents this type as 6 consecutive binary blocks of type T1.
Represents this type as 6 consecutive binary blocks of type T1..T6, relative to the specified way of decomposing and composing S as such.
Represents this type as 7 consecutive binary blocks of type T1.
Represents this type as 7 consecutive binary blocks of type T1..T7, relative to the specified way of decomposing and composing S as such.
Represents this type as 8 consecutive binary blocks of type T1.
Represents this type as 8 consecutive binary blocks of type T1..T8, relative to the specified way of decomposing and composing S as such.
Represents this type as 9 consecutive binary blocks of type T1.
Represents this type as 9 consecutive binary blocks of type T1..T9, relative to the specified way of decomposing and composing S as such.
Trivial serialization.
Trivial serialization. Writing is a no-op, reading always returns this instance.
Uses a single tag byte to represent S as a union of subtypes.
Uses a single tag byte to represent S as a union of subtypes.
Create a format for an enumeration, representing values by their integer IDs.
Create a format for an enumeration, representing values by their integer IDs.
Note that due to type system limitations we cannot enforce that you pass the right Enumeration to this method. Be good.
Lazy wrapper around a binary.
Lazy wrapper around a binary. Useful when you want e.g. mutually recursive binary instances.
Length encodes, but with the result built from an array.
Length encodes, but with the result built from an array.
Length encodes, but with the result built from a Seq.
Length encodes, but with the result built from a Seq.
Useful for when a ClassManifest
is not available the underlying type T
.
Encodes and decodes via some String representation.
Encodes and decodes via some String representation.
Attaches a stamp to the data.
Attaches a stamp to the data. This stamp is placed at the beginning of the format and may be used to verify the integrity of the data (e.g. a magic number for the data format version).
Serializes this via a bijection to some other type.
Serializes this via a bijection to some other type.