Struct yrs::updates::encoder::EncoderV1 [−][src]
pub struct EncoderV1 { /* fields omitted */ }
Implementations
Trait Implementations
Consume current encoder and return a binary with all data encoded so far.
Reset the state of currently encoded DeleteSet.
Write a clock value of currently encoded DeleteSet client.
Write a number of client entries used by currently encoded DeleteSet.
Write unique identifier of a currently encoded [Block]’s left origin.
Write unique identifier of a currently encoded [Block]’s right origin.
Write currently encoded client identifier.
Write currently encoded [Block]’s info flags. These contain information about which fields have been provided and which should be skipped during decoding process as well as a type of block currently encoded. Read more
Write info flag about currently encoded [Block]’s parent. Is is another block or root type.
Writes type ref data of currently encoded [Block]’s parent.
Encode JSON-like data type. This is a complex structure which is an extension to JavaScript Object Notation with some extra cases. Read more
Write an unsigned integer (32bit) in big endian order (most significant byte first)
Write a variable length unsigned integer.
Write a variable length integer. Read more
Write variable length buffer (binary content).
Write variable-length utf8 string