Class ByteWriter
- Namespace
- GstBase
- Assembly
- GstBase-1.0.dll
public sealed class ByteWriter
- Inheritance
-
ByteWriter
- Inherited Members
Constructors
ByteWriter()
public ByteWriter()
ByteWriter(ByteWriterOwnedHandle)
public ByteWriter(ByteWriterOwnedHandle handle)
Parameters
handleByteWriterOwnedHandle
Properties
AllocSize
public uint AllocSize { get; set; }
Property Value
Fixed
public bool Fixed { get; set; }
Property Value
Handle
public ByteWriterOwnedHandle Handle { get; }
Property Value
Owned
public bool Owned { get; set; }
Property Value
Methods
EnsureFreeSpace(uint)
public bool EnsureFreeSpace(uint size)
Parameters
sizeuint
Returns
Equals(ByteWriter?)
public bool Equals(ByteWriter? other)
Parameters
otherByteWriter
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Fill(byte, uint)
public bool Fill(byte value, uint size)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetRemaining()
public uint GetRemaining()
Returns
Init()
public void Init()
InitWithData(Span<byte>, bool)
public void InitWithData(Span<byte> data, bool initialized)
Parameters
InitWithSize(uint, bool)
public void InitWithSize(uint size, bool @fixed)
Parameters
New()
public static ByteWriter New()
Returns
NewWithData(ref byte, uint, bool)
public static ByteWriter NewWithData(ref byte data, uint size, bool initialized)
Parameters
Returns
NewWithSize(uint, bool)
public static ByteWriter NewWithSize(uint size, bool @fixed)
Parameters
Returns
PutBuffer(Buffer, nuint, nint)
public bool PutBuffer(Buffer buffer, nuint offset, nint size)
Parameters
Returns
PutData(Span<byte>)
public bool PutData(Span<byte> data)
Parameters
Returns
PutFloat32Be(float)
public bool PutFloat32Be(float val)
Parameters
valfloat
Returns
PutFloat32Le(float)
public bool PutFloat32Le(float val)
Parameters
valfloat
Returns
PutFloat64Be(double)
public bool PutFloat64Be(double val)
Parameters
valdouble
Returns
PutFloat64Le(double)
public bool PutFloat64Le(double val)
Parameters
valdouble
Returns
PutInt16Be(short)
public bool PutInt16Be(short val)
Parameters
valshort
Returns
PutInt16Le(short)
public bool PutInt16Le(short val)
Parameters
valshort
Returns
PutInt24Be(int)
public bool PutInt24Be(int val)
Parameters
valint
Returns
PutInt24Le(int)
public bool PutInt24Le(int val)
Parameters
valint
Returns
PutInt32Be(int)
public bool PutInt32Be(int val)
Parameters
valint
Returns
PutInt32Le(int)
public bool PutInt32Le(int val)
Parameters
valint
Returns
PutInt64Be(long)
public bool PutInt64Be(long val)
Parameters
vallong
Returns
PutInt64Le(long)
public bool PutInt64Le(long val)
Parameters
vallong
Returns
PutInt8(sbyte)
public bool PutInt8(sbyte val)
Parameters
valsbyte
Returns
PutStringUtf8(string)
public bool PutStringUtf8(string data)
Parameters
datastring
Returns
PutUint16Be(ushort)
public bool PutUint16Be(ushort val)
Parameters
valushort
Returns
PutUint16Le(ushort)
public bool PutUint16Le(ushort val)
Parameters
valushort
Returns
PutUint24Be(uint)
public bool PutUint24Be(uint val)
Parameters
valuint
Returns
PutUint24Le(uint)
public bool PutUint24Le(uint val)
Parameters
valuint
Returns
PutUint32Be(uint)
public bool PutUint32Be(uint val)
Parameters
valuint
Returns
PutUint32Le(uint)
public bool PutUint32Le(uint val)
Parameters
valuint
Returns
PutUint64Be(ulong)
public bool PutUint64Be(ulong val)
Parameters
valulong
Returns
PutUint64Le(ulong)
public bool PutUint64Le(ulong val)
Parameters
valulong
Returns
PutUint8(byte)
public bool PutUint8(byte val)
Parameters
valbyte
Returns
Reset()
public void Reset()
ResetAndGetBuffer()
public Buffer ResetAndGetBuffer()