Package lacewing :: Module bytereader :: Class ByteReader
[frames] | no frames]

Class ByteReader

source code

object --+
         |
        ByteReader

Instance Methods
 
__init__(self, input=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
data(self) source code
 
seek(self, *arg, **kw) source code
 
read(self, *arg, **kw) source code
 
size(self) source code
 
__len__(self) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
readByte(self, unsigned=False) source code
 
readShort(self, unsigned=False) source code
 
readFloat(self) source code
 
readInt(self, unsigned=False) source code
 
readString(self) source code
 
readStruct(self, structType) source code
 
writeByte(self, value, unsigned=False) source code
 
writeShort(self, value, unsigned=False) source code
 
writeFloat(self, value) source code
 
writeInt(self, value, unsigned=False) source code
 
writeString(self, value) source code
 
writeStruct(self, structType, *values) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  buffer = None
hash(x)
Properties

Inherited from object: __class__

Method Details

__init__(self, input=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • input (file/str/buffer) - The input to initially fill the reader with
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)