class Mobi::Mtld::Da::Carrier::ByteReader

This class gets a chunk of binary data (bytes) then the methods are used to read data segments based on the data of data being read from the chunk, the read pointer will advance to the next bytes.

All numeric values must be read in little endian byte order. All numeric data is signed unless the method specifies otherwise - e.g. int_unsigned()

Public Class Methods

new(data) click to toggle source

Public Instance Methods

boolean() click to toggle source
byte() click to toggle source
bytes(length) click to toggle source
double() click to toggle source
float() click to toggle source
int() click to toggle source
long() click to toggle source
short() click to toggle source
skip(len_short) click to toggle source
string_ascii(length) click to toggle source
string_utf8(length) click to toggle source
unsigned_int() click to toggle source