Package mobi :: Package mtld :: Package da :: Package carrier :: Module byte_reader :: Class ByteReader
[frames] | no frames]

Class ByteReader

This class gets a chunk of binary data (bytes) then the methods are used to read data segments based on the data being read from the chunk, the read pointer will advance to the next bytes. All numeric values are read in little endian byte order.

All numeric data is signed unless the method specifies otherwise - e.g. getIntUnsigned()


Copyright: Copyright (c) Afilias Technologies Limited 2021. All Rights Reserved.

Author: Afilias Technologies Limited

Instance Methods
 
__init__(self, data)
 
skip(self, offset)
 
getShort(self)
 
getInt(self)
 
getIntUnsigned(self)
 
getLong(self)
 
getFloat(self)
 
getDouble(self)
 
getByte(self)
 
getBytes(self, length)
 
getString(self, length)