Gst
Bit
Reader
constructor
bit
byte
data
size
name
free
get_
bits_
uint16
get_
bits_
uint32
get_
bits_
uint64
get_
bits_
uint8
get_
pos
get_
remaining
get_
size
init
init_
from_
buffer
peek_
bits_
uint16
peek_
bits_
uint32
peek_
bits_
uint64
peek_
bits_
uint8
set_
pos
skip
skip_
to_
byte
new
new_
from_
buffer
GJS API Reference
GstBase-0.10
GstBase
GstBitReader
Class GstBitReader
A bit reader instance.
record
Hierarchy
GstBitReader
Index
Constructors
constructor
Properties
bit
byte
data
size
name
Methods
free
get_
bits_
uint16
get_
bits_
uint32
get_
bits_
uint64
get_
bits_
uint8
get_
pos
get_
remaining
get_
size
init
init_
from_
buffer
peek_
bits_
uint16
peek_
bits_
uint32
peek_
bits_
uint64
peek_
bits_
uint8
set_
pos
skip
skip_
to_
byte
new
new_
from_
buffer
Constructors
constructor
new
Gst
Bit
Reader
(
data
:
any
[]
, size
:
number
)
:
GstBitReader
Parameters
data:
any
[]
size:
number
Returns
GstBitReader
Properties
bit
bit
:
number
byte
byte
:
number
data
data
:
number
size
size
:
number
Static
name
name
:
string
Methods
free
free
(
)
:
void
Returns
void
get_
bits_
uint16
get_
bits_
uint16
(
nbits
:
number
)
:
[
boolean
,
number
]
Parameters
nbits:
number
Returns
[
boolean
,
number
]
get_
bits_
uint32
get_
bits_
uint32
(
nbits
:
number
)
:
[
boolean
,
number
]
Parameters
nbits:
number
Returns
[
boolean
,
number
]
get_
bits_
uint64
get_
bits_
uint64
(
nbits
:
number
)
:
[
boolean
,
number
]
Parameters
nbits:
number
Returns
[
boolean
,
number
]
get_
bits_
uint8
get_
bits_
uint8
(
val
:
any
[]
, nbits
:
number
)
:
boolean
Parameters
val:
any
[]
nbits:
number
Returns
boolean
get_
pos
get_
pos
(
)
:
number
Returns
number
get_
remaining
get_
remaining
(
)
:
number
Returns
number
get_
size
get_
size
(
)
:
number
Returns
number
init
init
(
data
:
any
[]
, size
:
number
)
:
void
Parameters
data:
any
[]
size:
number
Returns
void
init_
from_
buffer
init_
from_
buffer
(
buffer
:
Gst
.
Buffer
)
:
void
Parameters
buffer:
Gst
.
Buffer
Returns
void
peek_
bits_
uint16
peek_
bits_
uint16
(
nbits
:
number
)
:
[
boolean
,
number
]
Parameters
nbits:
number
Returns
[
boolean
,
number
]
peek_
bits_
uint32
peek_
bits_
uint32
(
nbits
:
number
)
:
[
boolean
,
number
]
Parameters
nbits:
number
Returns
[
boolean
,
number
]
peek_
bits_
uint64
peek_
bits_
uint64
(
nbits
:
number
)
:
[
boolean
,
number
]
Parameters
nbits:
number
Returns
[
boolean
,
number
]
peek_
bits_
uint8
peek_
bits_
uint8
(
val
:
any
[]
, nbits
:
number
)
:
boolean
Parameters
val:
any
[]
nbits:
number
Returns
boolean
set_
pos
set_
pos
(
pos
:
number
)
:
boolean
Parameters
pos:
number
Returns
boolean
skip
skip
(
nbits
:
number
)
:
boolean
Parameters
nbits:
number
Returns
boolean
skip_
to_
byte
skip_
to_
byte
(
)
:
boolean
Returns
boolean
Static
new
new
(
data
:
any
[]
, size
:
number
)
:
GstBitReader
Parameters
data:
any
[]
size:
number
Returns
GstBitReader
Static
new_
from_
buffer
new_
from_
buffer
(
buffer
:
Gst
.
Buffer
)
:
GstBitReader
Parameters
buffer:
Gst
.
Buffer
Returns
GstBitReader
Gst
Bit
Reader
constructor
bit
byte
data
size
name
free
get_
bits_
uint16
get_
bits_
uint32
get_
bits_
uint64
get_
bits_
uint8
get_
pos
get_
remaining
get_
size
init
init_
from_
buffer
peek_
bits_
uint16
peek_
bits_
uint32
peek_
bits_
uint64
peek_
bits_
uint8
set_
pos
skip
skip_
to_
byte
new
new_
from_
buffer
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHc3RCYXNlXzBfMTAuR3N0QmFzZS5Hc3RCaXRSZWFkZXIuaHRtbCNjb25zdHJ1Y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