Module ozelot::read
[−]
[src]
Functions for deserializing datatypes used by the protocol
Functions
read_String |
Read a length-prefixed utf-8 String from the Reader |
read_bool |
Read a single bool from the Reader |
read_bytearray |
Alias for read_bytearray_to_end |
read_bytearray_to_end |
Read a bytearray to the end of the reader |
read_f32 |
Read a single f32 from the Reader |
read_f64 |
Read a single f64 from the Reader |
read_i8 |
Read a single i8 from the Reader |
read_i16 |
Read a single i16 from the Reader |
read_i32 |
Read a single i32 from the Reader |
read_i64 |
Read a single i64 from the Reader |
read_position |
Read a position as described on wiki.vg, i.e. x/y/z given as an u64 |
read_prefixed_bytearray |
Read length-prefixed bytearray where the length is given as a varint |
read_prefixed_varintarray |
Read length-prefixed varint array where the length is given as a varint |
read_u8 |
Read a single u8 from the Reader |
read_u16 |
Read a single u16 from the Reader |
read_u64 |
Read a single u64 from the Reader |
read_uuid |
Read a uuid encoded as 16 bytes |
read_uuid_str |
Read a uuid encoded as a string |
read_varint |
Read a Minecraft-style varint, which currently fits into a i32 |