bf_read
bf_read
Metatable function | Description |
---|---|
__tostring |
Returns a formated string of the bf_read -> bf_read [size in bits] |
__index |
Used to find the functions on the metatable and access saved variables |
__newindex |
Used to allow one to save variables on the object |
__gc |
Internally deletes the bf_read turning it invalid |
Methods
number bf_read:GetCurrentBit( )
Returns the current position/bit.
This is only available for the 32x!
number bf_read:GetNumBits( )
Returns the size of the data in bits.
number bf_read:GetNumBitsLeft( )
Returns the number of bits left.
number bf_read:GetNumBitsRead( )
Returns the number of bits read.
number bf_read:GetNumBytes( )
Returns the size of the data in bytes.
number bf_read:GetNumBytesLeft( )
Returns the number of bytes left.
number bf_read:GetNumBytesRead( )
Returns the number of bytes read.
boolean bf_read:IsOverflowed( )
Returns
true
if the buffer is overflowed.
Peaks to the given bit(doesn't change current position) and returns the value.
Peaks to the given bit(doesn't change current position) and returns the value.
Angle bf_read:ReadBitAngles( )
Reads a Angle
number bf_read:ReadBitCoord( )
This is only available for the 32x!
number bf_read:ReadBitCoordBits( )
This is only available for the 32x!
This is only available for the 32x!
This is only available for the 32x!
number bf_read:ReadBitFloat( )
Reads a number with the given number of bits.
This is only available for the 32x!
This is only available for the 32x!
number bf_read:ReadBitNormal( )
Vector bf_read:ReadBitVec3Coord( )
Reads a Vector
Vector bf_read:ReadBitVec3Normal( )
Reads a normalizted Vector
number bf_read:ReadLongLong( )
Reads a long long.
number bf_read:ReadOneBit( )
Reads one bit.
Reads a signed number with the given number of bits.
If you want to read a unsigned number use bf_read:ReadBitLong or bf_read:ReadUBitLong
If you want to read a unsigned number use bf_read:ReadBitLong or bf_read:ReadUBitLong
number bf_read:ReadSignedVarInt32( )
number bf_read:ReadSignedVarInt64( )
string bf_read:ReadString( )
Reads a null terminated string.
Reads a unsigned number with the given number of bits.
If you want to read a signed number use bf_read:ReadBitLong or bf_read:ReadSBitLong
If you want to read a signed number use bf_read:ReadBitLong or bf_read:ReadSBitLong
number bf_read:ReadUBitVar( )
number bf_read:ReadVarInt32( )
number bf_read:ReadVarInt64( )
bf_read:Reset()
Resets the current position and resets the overflow flag.
Sets the current position to the given position relative to the current position.
Basicly
Basicly
newPosition = currentPosition + iPos