GLib.ByteArray – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
ByteArray
free_to_bytes
ByteArray
ByteArray.sized
ByteArray.take
append
prepend
remove_index
remove_index_fast
remove_range
set_size
sort
sort_with_data
data
len
ByteArray
Object Hierarchy:
Description:
[
Compact
]
[
Version
( since =
"2.22"
) ]
public
class
ByteArray
Namespace:
GLib
Package:
glib-2.0
Content:
Static methods:
public
static
Bytes
free_to_bytes
(
owned
ByteArray
array)
Creation methods:
public
ByteArray
()
public
ByteArray.sized
(
uint
reserved_size)
public
ByteArray.take
(
owned
uint8
[] data)
Methods:
public
void
append
(
uint8
[] data)
public
void
prepend
(
uint8
[] data)
public
void
remove_index
(
uint
index)
public
void
remove_index_fast
(
uint
index)
public
void
remove_range
(
uint
index,
uint
length)
public
void
sort
(
CompareFunc
<
int8
> compare_func)
public
void
sort_with_data
(
CompareDataFunc
<
int8
> compare_func)
public
void
set_size
(
uint
length)
Fields:
public
uint
len
public
uint8
[]
data