Table of Contents

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

uint

Fixed

public bool Fixed { get; set; }

Property Value

bool

Handle

public ByteWriterOwnedHandle Handle { get; }

Property Value

ByteWriterOwnedHandle

Owned

public bool Owned { get; set; }

Property Value

bool

Methods

EnsureFreeSpace(uint)

public bool EnsureFreeSpace(uint size)

Parameters

size uint

Returns

bool

Equals(ByteWriter?)

public bool Equals(ByteWriter? other)

Parameters

other ByteWriter

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Fill(byte, uint)

public bool Fill(byte value, uint size)

Parameters

value byte
size uint

Returns

bool

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

uint

Init()

public void Init()

InitWithData(Span<byte>, bool)

public void InitWithData(Span<byte> data, bool initialized)

Parameters

data Span<byte>
initialized bool

InitWithSize(uint, bool)

public void InitWithSize(uint size, bool @fixed)

Parameters

size uint
fixed bool

New()

public static ByteWriter New()

Returns

ByteWriter

NewWithData(ref byte, uint, bool)

public static ByteWriter NewWithData(ref byte data, uint size, bool initialized)

Parameters

data byte
size uint
initialized bool

Returns

ByteWriter

NewWithSize(uint, bool)

public static ByteWriter NewWithSize(uint size, bool @fixed)

Parameters

size uint
fixed bool

Returns

ByteWriter

PutBuffer(Buffer, nuint, long)

public bool PutBuffer(Buffer buffer, nuint offset, long size)

Parameters

buffer Buffer
offset nuint
size long

Returns

bool

PutData(Span<byte>)

public bool PutData(Span<byte> data)

Parameters

data Span<byte>

Returns

bool

PutFloat32Be(float)

public bool PutFloat32Be(float val)

Parameters

val float

Returns

bool

PutFloat32Le(float)

public bool PutFloat32Le(float val)

Parameters

val float

Returns

bool

PutFloat64Be(double)

public bool PutFloat64Be(double val)

Parameters

val double

Returns

bool

PutFloat64Le(double)

public bool PutFloat64Le(double val)

Parameters

val double

Returns

bool

PutInt16Be(short)

public bool PutInt16Be(short val)

Parameters

val short

Returns

bool

PutInt16Le(short)

public bool PutInt16Le(short val)

Parameters

val short

Returns

bool

PutInt24Be(int)

public bool PutInt24Be(int val)

Parameters

val int

Returns

bool

PutInt24Le(int)

public bool PutInt24Le(int val)

Parameters

val int

Returns

bool

PutInt32Be(int)

public bool PutInt32Be(int val)

Parameters

val int

Returns

bool

PutInt32Le(int)

public bool PutInt32Le(int val)

Parameters

val int

Returns

bool

PutInt64Be(long)

public bool PutInt64Be(long val)

Parameters

val long

Returns

bool

PutInt64Le(long)

public bool PutInt64Le(long val)

Parameters

val long

Returns

bool

PutInt8(sbyte)

public bool PutInt8(sbyte val)

Parameters

val sbyte

Returns

bool

PutStringUtf8(string)

public bool PutStringUtf8(string data)

Parameters

data string

Returns

bool

PutUint16Be(ushort)

public bool PutUint16Be(ushort val)

Parameters

val ushort

Returns

bool

PutUint16Le(ushort)

public bool PutUint16Le(ushort val)

Parameters

val ushort

Returns

bool

PutUint24Be(uint)

public bool PutUint24Be(uint val)

Parameters

val uint

Returns

bool

PutUint24Le(uint)

public bool PutUint24Le(uint val)

Parameters

val uint

Returns

bool

PutUint32Be(uint)

public bool PutUint32Be(uint val)

Parameters

val uint

Returns

bool

PutUint32Le(uint)

public bool PutUint32Le(uint val)

Parameters

val uint

Returns

bool

PutUint64Be(ulong)

public bool PutUint64Be(ulong val)

Parameters

val ulong

Returns

bool

PutUint64Le(ulong)

public bool PutUint64Le(ulong val)

Parameters

val ulong

Returns

bool

PutUint8(byte)

public bool PutUint8(byte val)

Parameters

val byte

Returns

bool

Reset()

public void Reset()

ResetAndGetBuffer()

public Buffer ResetAndGetBuffer()

Returns

Buffer