bitbuffers module¶
Provides access to buffer types.
-
class
bitbuffers.
BitBufferRead
¶ Bases:
Boost.Python.instance
-
__init__
((object)arg1, (object)arg2, (Channel)arg3[, (Channel)arg4]) → None¶ __init__( (object)arg1, (BitBufferWrite)arg2 [, (bool)create_copy=True]) -> object
-
is_overflowed
((BitBufferRead)arg1) → bool¶
-
peek_ubit_long
((BitBufferRead)arg1, (Channel)arg2) → int¶
-
read_bit_angle
((BitBufferRead)arg1, (Channel)arg2) → float¶
-
read_bit_angles
((BitBufferRead)arg1, (QAngle)arg2) → None¶
-
read_bit_coord
((BitBufferRead)arg1) → float¶
-
read_bit_coord_mp
((BitBufferRead)arg1, (bool)arg2, (bool)arg3) → float¶
-
read_bit_float
((BitBufferRead)arg1) → float¶
-
read_bit_normal
((BitBufferRead)arg1) → float¶
-
read_bit_vec3_coord
((BitBufferRead)arg1, (Vector)arg2) → None¶
-
read_bit_vec3_normal
((BitBufferRead)arg1, (Vector)arg2) → None¶
-
read_byte
((BitBufferRead)arg1) → int¶
-
read_char
((BitBufferRead)arg1) → int¶
-
read_float
((BitBufferRead)arg1) → float¶
-
read_long
((BitBufferRead)arg1) → int¶
-
read_long_long
((BitBufferRead)arg1) → int¶
-
read_one_bit
((BitBufferRead)arg1) → int¶
-
read_sbit_long
((BitBufferRead)arg1, (Channel)arg2) → int¶
-
read_short
((BitBufferRead)arg1) → int¶
-
read_string
((BitBufferRead)arg1[, (str)errors=None]) → str¶
-
read_ubit_long
((BitBufferRead)arg1, (Channel)arg2) → int¶
-
read_ubit_var
((BitBufferRead)arg1) → int¶
-
read_word
((BitBufferRead)arg1) → int¶
-
seek_relative
((BitBufferRead)arg1, (Channel)arg2) → bool¶
-
seek_to_bit
((BitBufferRead)arg1, (Channel)arg2) → bool¶
-
set_overflow_flag
((BitBufferRead)arg1) → None¶
-
current_bit
¶
-
data
¶
-
data_bits_count
¶
-
data_bytes_count
¶
-
num_bits_left
¶
-
num_bits_read
¶
-
num_bytes_left
¶
-
num_bytes_read
¶
-
-
class
bitbuffers.
BitBufferWrite
¶ Bases:
Boost.Python.instance
-
__init__
((object)arg1, (object)arg2, (Channel)arg3[, (Channel)arg4]) → None¶ __init__( (object)arg1, (Channel)arg2) -> object
-
check_for_overflow
((BitBufferWrite)arg1, (Channel)arg2) → bool¶
-
is_overflowed
((BitBufferWrite)arg1) → bool¶
-
reset
((BitBufferWrite)arg1) → None :¶ Reset the buffer.
-
seek_to_bit
((BitBufferWrite)arg1, (Channel)arg2) → None :¶ Seeks to a specific position.
-
set_overflow_flag
((BitBufferWrite)arg1) → None¶
-
write_bit_angle
((BitBufferWrite)arg1, (float)arg2, (Channel)arg3) → None¶
-
write_bit_angles
((BitBufferWrite)arg1, (QAngle)arg2) → None¶
-
write_bit_coord
((BitBufferWrite)arg1, (float)arg2) → None¶
-
write_bit_coord_mp
((BitBufferWrite)arg1, (float)arg2, (bool)arg3, (bool)arg4) → None¶
-
write_bit_float
((BitBufferWrite)arg1, (float)arg2) → None¶
-
write_bit_normal
((BitBufferWrite)arg1, (float)arg2) → None¶
-
write_bit_vec3_coord
((BitBufferWrite)arg1, (Vector)arg2) → None¶
-
write_bit_vec3_normal
((BitBufferWrite)arg1, (Vector)arg2) → None¶
-
write_bits_from_buffer
((BitBufferWrite)arg1, (BitBufferRead)arg2, (Channel)arg3) → bool :¶ Copy the bits straight out of <pIn>. This seeks <pIn> forward by <nBits>. Returns an error if this buffer or the read buffer overflows.
-
write_byte
((BitBufferWrite)arg1, (Channel)arg2) → None¶
-
write_char
((BitBufferWrite)arg1, (Channel)arg2) → None¶
-
write_float
((BitBufferWrite)arg1, (float)arg2) → None¶
-
write_long
((BitBufferWrite)arg1, (int)arg2) → None¶
-
write_long_long
((BitBufferWrite)arg1, (int)arg2) → None¶
-
write_one_bit
((BitBufferWrite)arg1, (Channel)arg2) → None¶
-
write_one_bit_at
((BitBufferWrite)arg1, (Channel)arg2, (Channel)arg3) → None¶
-
write_one_bit_no_check
((BitBufferWrite)arg1, (Channel)arg2) → None¶
-
write_sbit_long
((BitBufferWrite)arg1, (Channel)arg2, (Channel)arg3) → None¶
-
write_short
((BitBufferWrite)arg1, (Channel)arg2) → None¶
-
write_string
((BitBufferWrite)arg1, (str)arg2) → bool :¶ Returns false if it overflows the buffer.
-
write_ubit_long
((BitBufferWrite)arg1, (int)arg2, (Channel)arg3[, (bool)check_range=True]) → None¶
-
write_ubit_var
((BitBufferWrite)arg1, (int)arg2) → None :¶ Writes an unsigned integer with variable bit length.
-
write_word
((BitBufferWrite)arg1, (Channel)arg2) → None¶
-
current_bit
¶
-
data
¶
-
data_bits_count
¶
-
data_bytes_count
¶
-
max_num_bits
¶
-
num_bits_left
¶
-
num_bits_written
¶
-
num_bytes_left
¶
-
num_bytes_written
¶
-