Table of Contents

Class ByteWriter

Namespace
GstBase.Internal
Assembly
GstBase-1.0.dll
public class ByteWriter
Inheritance
ByteWriter
Inherited Members

Methods

EnsureFreeSpace(ByteWriterHandle, uint)

Calls native method gst_byte_writer_ensure_free_space.

public static extern bool EnsureFreeSpace(ByteWriterHandle writer, uint size)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

size uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Fill(ByteWriterHandle, byte, uint)

Calls native method gst_byte_writer_fill.

public static extern bool Fill(ByteWriterHandle writer, byte value, uint size)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

value byte

Transfer ownership: None Nullable: False

size uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetRemaining(ByteWriterHandle)

Calls native method gst_byte_writer_get_remaining.

public static extern uint GetRemaining(ByteWriterHandle writer)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

Init(ByteWriterHandle)

Calls native method gst_byte_writer_init.

public static extern void Init(ByteWriterHandle writer)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

InitWithData(ByteWriterHandle, ref byte, uint, bool)

Calls native method gst_byte_writer_init_with_data.

public static extern void InitWithData(ByteWriterHandle writer, ref byte data, uint size, bool initialized)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

data byte

Transfer ownership: None Nullable: False

size uint

Transfer ownership: None Nullable: False

initialized bool

Transfer ownership: None Nullable: False

InitWithSize(ByteWriterHandle, uint, bool)

Calls native method gst_byte_writer_init_with_size.

public static extern void InitWithSize(ByteWriterHandle writer, uint size, bool @fixed)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

size uint

Transfer ownership: None Nullable: False

fixed bool

New()

Calls native function gst_byte_writer_new.

public static extern ByteWriterOwnedHandle New()

Returns

ByteWriterOwnedHandle

Transfer ownership: Full Nullable: False

NewWithData(ref byte, uint, bool)

Calls native function gst_byte_writer_new_with_data.

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

Parameters

data byte

Transfer ownership: None Nullable: False

size uint

Transfer ownership: None Nullable: False

initialized bool

Transfer ownership: None Nullable: False

Returns

ByteWriterOwnedHandle

Transfer ownership: Full Nullable: False

NewWithSize(uint, bool)

Calls native function gst_byte_writer_new_with_size.

public static extern ByteWriterOwnedHandle NewWithSize(uint size, bool @fixed)

Parameters

size uint

Transfer ownership: None Nullable: False

fixed bool

Returns

ByteWriterOwnedHandle

Transfer ownership: Full Nullable: False

PutBuffer(ByteWriterHandle, BufferHandle, nuint, long)

Calls native method gst_byte_writer_put_buffer.

public static extern bool PutBuffer(ByteWriterHandle writer, BufferHandle buffer, nuint offset, long size)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

buffer BufferHandle

Transfer ownership: None Nullable: False

offset nuint

Transfer ownership: None Nullable: False

size long

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutData(ByteWriterHandle, ref byte, uint)

Calls native method gst_byte_writer_put_data.

public static extern bool PutData(ByteWriterHandle writer, ref byte data, uint size)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

data byte

Transfer ownership: None Nullable: False

size uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutFloat32Be(ByteWriterHandle, float)

Calls native method gst_byte_writer_put_float32_be.

public static extern bool PutFloat32Be(ByteWriterHandle writer, float val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val float

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutFloat32Le(ByteWriterHandle, float)

Calls native method gst_byte_writer_put_float32_le.

public static extern bool PutFloat32Le(ByteWriterHandle writer, float val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val float

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutFloat64Be(ByteWriterHandle, double)

Calls native method gst_byte_writer_put_float64_be.

public static extern bool PutFloat64Be(ByteWriterHandle writer, double val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val double

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutFloat64Le(ByteWriterHandle, double)

Calls native method gst_byte_writer_put_float64_le.

public static extern bool PutFloat64Le(ByteWriterHandle writer, double val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val double

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt16Be(ByteWriterHandle, short)

Calls native method gst_byte_writer_put_int16_be.

public static extern bool PutInt16Be(ByteWriterHandle writer, short val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val short

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt16Le(ByteWriterHandle, short)

Calls native method gst_byte_writer_put_int16_le.

public static extern bool PutInt16Le(ByteWriterHandle writer, short val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val short

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt24Be(ByteWriterHandle, int)

Calls native method gst_byte_writer_put_int24_be.

public static extern bool PutInt24Be(ByteWriterHandle writer, int val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt24Le(ByteWriterHandle, int)

Calls native method gst_byte_writer_put_int24_le.

public static extern bool PutInt24Le(ByteWriterHandle writer, int val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt32Be(ByteWriterHandle, int)

Calls native method gst_byte_writer_put_int32_be.

public static extern bool PutInt32Be(ByteWriterHandle writer, int val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt32Le(ByteWriterHandle, int)

Calls native method gst_byte_writer_put_int32_le.

public static extern bool PutInt32Le(ByteWriterHandle writer, int val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt64Be(ByteWriterHandle, long)

Calls native method gst_byte_writer_put_int64_be.

public static extern bool PutInt64Be(ByteWriterHandle writer, long val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val long

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt64Le(ByteWriterHandle, long)

Calls native method gst_byte_writer_put_int64_le.

public static extern bool PutInt64Le(ByteWriterHandle writer, long val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val long

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutInt8(ByteWriterHandle, sbyte)

Calls native method gst_byte_writer_put_int8.

public static extern bool PutInt8(ByteWriterHandle writer, sbyte val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val sbyte

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutStringUtf16(ByteWriterHandle, ref ushort)

Calls native method gst_byte_writer_put_string_utf16.

public static extern bool PutStringUtf16(ByteWriterHandle writer, ref ushort data)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

data ushort

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutStringUtf32(ByteWriterHandle, ref uint)

Calls native method gst_byte_writer_put_string_utf32.

public static extern bool PutStringUtf32(ByteWriterHandle writer, ref uint data)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

data uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutStringUtf8(ByteWriterHandle, NonNullableUtf8StringHandle)

Calls native method gst_byte_writer_put_string_utf8.

public static extern bool PutStringUtf8(ByteWriterHandle writer, NonNullableUtf8StringHandle data)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

data NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint16Be(ByteWriterHandle, ushort)

Calls native method gst_byte_writer_put_uint16_be.

public static extern bool PutUint16Be(ByteWriterHandle writer, ushort val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val ushort

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint16Le(ByteWriterHandle, ushort)

Calls native method gst_byte_writer_put_uint16_le.

public static extern bool PutUint16Le(ByteWriterHandle writer, ushort val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val ushort

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint24Be(ByteWriterHandle, uint)

Calls native method gst_byte_writer_put_uint24_be.

public static extern bool PutUint24Be(ByteWriterHandle writer, uint val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint24Le(ByteWriterHandle, uint)

Calls native method gst_byte_writer_put_uint24_le.

public static extern bool PutUint24Le(ByteWriterHandle writer, uint val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint32Be(ByteWriterHandle, uint)

Calls native method gst_byte_writer_put_uint32_be.

public static extern bool PutUint32Be(ByteWriterHandle writer, uint val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint32Le(ByteWriterHandle, uint)

Calls native method gst_byte_writer_put_uint32_le.

public static extern bool PutUint32Le(ByteWriterHandle writer, uint val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint64Be(ByteWriterHandle, ulong)

Calls native method gst_byte_writer_put_uint64_be.

public static extern bool PutUint64Be(ByteWriterHandle writer, ulong val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val ulong

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint64Le(ByteWriterHandle, ulong)

Calls native method gst_byte_writer_put_uint64_le.

public static extern bool PutUint64Le(ByteWriterHandle writer, ulong val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val ulong

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

PutUint8(ByteWriterHandle, byte)

Calls native method gst_byte_writer_put_uint8.

public static extern bool PutUint8(ByteWriterHandle writer, byte val)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

val byte

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Reset(ByteWriterHandle)

Calls native method gst_byte_writer_reset.

public static extern void Reset(ByteWriterHandle writer)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

ResetAndGetBuffer(ByteWriterHandle)

Calls native method gst_byte_writer_reset_and_get_buffer.

public static extern BufferOwnedHandle ResetAndGetBuffer(ByteWriterHandle writer)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

Returns

BufferOwnedHandle

Transfer ownership: Full Nullable: False

ResetAndGetData(ByteWriterHandle)

Calls native method gst_byte_writer_reset_and_get_data.

public static extern byte[] ResetAndGetData(ByteWriterHandle writer)

Parameters

writer ByteWriterHandle

Transfer ownership: None Nullable: False

Returns

byte[]

Transfer ownership: Full Nullable: False