Class Bytes
public class Bytes
- Inheritance
-
Bytes
- Inherited Members
Methods
Compare(BytesHandle, BytesHandle)
Calls native method g_bytes_compare. Version: 2.32
[Version("2.32")]
public static extern int Compare(BytesHandle bytes1, BytesHandle bytes2)
Parameters
bytes1
BytesHandleTransfer ownership: None Nullable: False
bytes2
BytesHandleTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
Equal(BytesHandle, BytesHandle)
Calls native method g_bytes_equal. Version: 2.32
[Version("2.32")]
public static extern bool Equal(BytesHandle bytes1, BytesHandle bytes2)
Parameters
bytes1
BytesHandleTransfer ownership: None Nullable: False
bytes2
BytesHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetData(BytesHandle, out nuint)
Calls native method g_bytes_get_data. Version: 2.32
[Version("2.32")]
public static extern byte[] GetData(BytesHandle bytes, out nuint size)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: False
size
nuintTransfer ownership: Full Nullable: False
Returns
- byte[]
Transfer ownership: None Nullable: True
GetGType()
Calls native function g_bytes_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetRegion(BytesHandle, nuint, nuint, nuint)
Calls native method g_bytes_get_region. Version: 2.70
[Version("2.70")]
public static extern IntPtr GetRegion(BytesHandle bytes, nuint elementSize, nuint offset, nuint nElements)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: False
elementSize
nuintTransfer ownership: None Nullable: False
offset
nuintTransfer ownership: None Nullable: False
nElements
nuintTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetSize(BytesHandle)
Calls native method g_bytes_get_size. Version: 2.32
[Version("2.32")]
public static extern nuint GetSize(BytesHandle bytes)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: False
Returns
- nuint
Transfer ownership: None Nullable: False
Hash(BytesHandle)
Calls native method g_bytes_hash. Version: 2.32
[Version("2.32")]
public static extern uint Hash(BytesHandle bytes)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
New(ref byte, nuint)
Calls native constructor g_bytes_new. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle New(ref byte data, nuint size)
Parameters
data
byteTransfer ownership: None Nullable: True
size
nuintTransfer ownership: None Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
NewFromBytes(BytesHandle, nuint, nuint)
Calls native method g_bytes_new_from_bytes. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle NewFromBytes(BytesHandle bytes, nuint offset, nuint length)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: False
offset
nuintTransfer ownership: None Nullable: False
length
nuintTransfer ownership: None Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
NewStatic(ref byte, nuint)
Calls native constructor g_bytes_new_static. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle NewStatic(ref byte data, nuint size)
Parameters
data
byteTransfer ownership: Full Nullable: True
size
nuintTransfer ownership: None Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
NewTake(ref byte, nuint)
Calls native constructor g_bytes_new_take. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle NewTake(ref byte data, nuint size)
Parameters
data
byteTransfer ownership: Full Nullable: True
size
nuintTransfer ownership: None Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
NewWithFreeFunc(ref byte, nuint, DestroyNotify, IntPtr)
Calls native constructor g_bytes_new_with_free_func. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle NewWithFreeFunc(ref byte data, nuint size, DestroyNotify freeFunc, IntPtr userData)
Parameters
data
byteTransfer ownership: None Nullable: True
size
nuintTransfer ownership: None Nullable: False
freeFunc
DestroyNotifyTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
Ref(BytesHandle)
Calls native method g_bytes_ref. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle Ref(BytesHandle bytes)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
Unref(BytesHandle)
Calls native method g_bytes_unref. Version: 2.32
[Version("2.32")]
public static extern void Unref(BytesHandle bytes)
Parameters
bytes
BytesHandleTransfer ownership: None Nullable: True
UnrefToData(BytesUnownedHandle, out nuint)
Calls native method g_bytes_unref_to_data. Version: 2.32
[Version("2.32")]
public static extern byte[] UnrefToData(BytesUnownedHandle bytes, out nuint size)
Parameters
bytes
BytesUnownedHandleTransfer ownership: Full Nullable: False
size
nuintTransfer ownership: Full Nullable: False
Returns
- byte[]
Transfer ownership: Full Nullable: False