BCHserialized
Properties
Functions
Append a single character to this object
Append a serialized string to this object
Append a serialized object to this serialized object
Serialize a bitcoin-style "compact" integer
Add these exact bytes to the serialization. (NO LENGTH FIELD : this does not add a serialized byte array)
Serialize a 32 bit integer into this object
Serialize a 32 bit integer into this object
Serialize a 64 bit integer into this object
Serializes a map object with the provided key and value serialization functions
Append a serialized object to this serialized object Network formats do not support this, but occasionally we serialize into a network format to store as a binary blob on disk
This API is ambiguous WRT null verses a size 0 byte array
Serialize a 64 bit integer into this object
Return how many bytes are left to be read
Deserialize a 16 bit BigEndian unsigned integer
Deserialize a variable length array (vector) of bytes Note that the opposite of this (serializing a array of bytes) is ambiguous Do you want to serialize the exact bytes passed, or serialize an array of bytes (that is, indicate the length in the serialization). To serialize an array of bytes (the opposite of this) use the "variableSized" object like this: satoshiSerializedObject + variableSized(yourByteArray)
Deserialize a list of some object. You must pass a factory function that takes a buffer and returns an instance of the object (consuming some of the buffer)
Deserialize a map of key value pair objects. You must pass 2 factory functions that each take a buffer and returns an instance of the key or value object (consuming some of the buffer)
Deserialize any object that is nullable, but prepending a byte indicating whether this object is null or not. This API should only be used for DISK serialization because this nullable technique is not part of the network protocol. However, in one case we store to disk the network serialization of an object (if it exists).
Deserialize a variable length array (vector) of bytes, see deByteArray If the array size is 0, return null
Return a new serialization object that contains this and the serialization of an array of serializable objects
Return a new serialization object that contains this and the passed parameter serialized
Return a new serialization object that contains this and the passed parameter
Append a serialized string to this object
Append a serialized object to this serialized object
Return an object that allows access to the unconsumed data