GLib.Bytes – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Bytes
length
new_with_owner
unref_to_array
unref_to_data
Bytes
Bytes.from_bytes
Bytes.static
Bytes.take
Bytes.with_free_func
@get
compare
get_data
get_size
hash
slice
Bytes
Object Hierarchy:
Description:
[
Compact
]
public
class
Bytes
Namespace:
GLib
Package:
glib-2.0
Content:
Properties:
public
int
length
{
get
; }
Static methods:
public
static
Bytes
new_with_owner
<
T
> (
uint8
[] data,
owned
T
owner =
null
)
public
static
uint8
[]
unref_to_data
(
owned
Bytes
bytes)
public
static
ByteArray
unref_to_array
(
owned
Bytes
bytes)
Creation methods:
public
Bytes
(
uint8
[] data)
public
Bytes.take
(
owned
uint8
[] data)
public
Bytes.static
(
uint8
[] data)
public
Bytes.with_free_func
(
owned
uint8
[] data,
DestroyNotify
? free_func =
g_free
)
public
Bytes.from_bytes
(
Bytes
bytes,
size_t
offset,
size_t
length)
Methods:
public
weak
uint8
[]
get_data
()
public
size_t
get_size
()
public
uint
hash
()
public
int
compare
(
Bytes
bytes2)
public
uint8
@get
(
int
index)
public
Bytes
slice
(
int
start,
int
end)