Class Bytes
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Bytes : IDisposable, BoxedRecord, IEquatable<Bytes>
- Inheritance
-
Bytes
- Implements
- Inherited Members
Constructors
Bytes(BytesOwnedHandle)
public Bytes(BytesOwnedHandle handle)
Parameters
handle
BytesOwnedHandle
Properties
Handle
public BytesOwnedHandle Handle { get; }
Property Value
Methods
Compare(Bytes)
[Version("2.32")]
public int Compare(Bytes bytes2)
Parameters
bytes2
Bytes
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equal(Bytes)
[Version("2.32")]
public bool Equal(Bytes bytes2)
Parameters
bytes2
Bytes
Returns
Equals(Bytes?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Bytes? other)
Parameters
other
BytesAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetRegion(nuint, nuint, nuint)
[Version("2.70")]
public IntPtr GetRegion(nuint elementSize, nuint offset, nuint nElements)
Parameters
Returns
GetSize()
[Version("2.32")]
public nuint GetSize()
Returns
Hash()
[Version("2.32")]
public uint Hash()
Returns
New(Span<byte>)
[Version("2.32")]
public static Bytes New(Span<byte> data)
Parameters
Returns
NewFromBytes(nuint, nuint)
[Version("2.32")]
public Bytes NewFromBytes(nuint offset, nuint length)
Parameters
Returns
NewStatic(Span<byte>)
[Version("2.32")]
public static Bytes NewStatic(Span<byte> data)
Parameters
Returns
NewTake(Span<byte>)
[Version("2.32")]
public static Bytes NewTake(Span<byte> data)
Parameters
Returns
Ref()
[Version("2.32")]
public Bytes Ref()
Returns
Unref()
[Version("2.32")]
public void Unref()