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
handle
ByteWriterOwnedHandle
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
size
uint
Returns
Equals(ByteWriter?)
public bool Equals(ByteWriter? other)
Parameters
other
ByteWriter
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
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
val
float
Returns
PutFloat32Le(float)
public bool PutFloat32Le(float val)
Parameters
val
float
Returns
PutFloat64Be(double)
public bool PutFloat64Be(double val)
Parameters
val
double
Returns
PutFloat64Le(double)
public bool PutFloat64Le(double val)
Parameters
val
double
Returns
PutInt16Be(short)
public bool PutInt16Be(short val)
Parameters
val
short
Returns
PutInt16Le(short)
public bool PutInt16Le(short val)
Parameters
val
short
Returns
PutInt24Be(int)
public bool PutInt24Be(int val)
Parameters
val
int
Returns
PutInt24Le(int)
public bool PutInt24Le(int val)
Parameters
val
int
Returns
PutInt32Be(int)
public bool PutInt32Be(int val)
Parameters
val
int
Returns
PutInt32Le(int)
public bool PutInt32Le(int val)
Parameters
val
int
Returns
PutInt64Be(long)
public bool PutInt64Be(long val)
Parameters
val
long
Returns
PutInt64Le(long)
public bool PutInt64Le(long val)
Parameters
val
long
Returns
PutInt8(sbyte)
public bool PutInt8(sbyte val)
Parameters
val
sbyte
Returns
PutStringUtf8(string)
public bool PutStringUtf8(string data)
Parameters
data
string
Returns
PutUint16Be(ushort)
public bool PutUint16Be(ushort val)
Parameters
val
ushort
Returns
PutUint16Le(ushort)
public bool PutUint16Le(ushort val)
Parameters
val
ushort
Returns
PutUint24Be(uint)
public bool PutUint24Be(uint val)
Parameters
val
uint
Returns
PutUint24Le(uint)
public bool PutUint24Le(uint val)
Parameters
val
uint
Returns
PutUint32Be(uint)
public bool PutUint32Be(uint val)
Parameters
val
uint
Returns
PutUint32Le(uint)
public bool PutUint32Le(uint val)
Parameters
val
uint
Returns
PutUint64Be(ulong)
public bool PutUint64Be(ulong val)
Parameters
val
ulong
Returns
PutUint64Le(ulong)
public bool PutUint64Le(ulong val)
Parameters
val
ulong
Returns
PutUint8(byte)
public bool PutUint8(byte val)
Parameters
val
byte
Returns
Reset()
public void Reset()
ResetAndGetBuffer()
public Buffer ResetAndGetBuffer()