Table of Contents

Class Memory

Namespace
Gst
Assembly
Gst-1.0.dll
public sealed class Memory : BoxedRecord, IEquatable<Memory>
Inheritance
Memory
Implements
Inherited Members

Constructors

Memory()

public Memory()

Memory(MemoryOwnedHandle)

public Memory(MemoryOwnedHandle handle)

Parameters

handle MemoryOwnedHandle

Properties

Align

public nuint Align { get; set; }

Property Value

nuint

Handle

public MemoryOwnedHandle Handle { get; }

Property Value

MemoryOwnedHandle

Maxsize

public nuint Maxsize { get; set; }

Property Value

nuint

Offset

public nuint Offset { get; set; }

Property Value

nuint

Size

public nuint Size { get; set; }

Property Value

nuint

Methods

Copy(long, long)

public Memory? Copy(long offset, long size)

Parameters

offset long
size long

Returns

Memory

Equals(Memory?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Memory? other)

Parameters

other Memory

An object to compare with this object.

Returns

bool

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

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.

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetSizes(out nuint, out nuint)

public nuint GetSizes(out nuint offset, out nuint maxsize)

Parameters

offset nuint
maxsize nuint

Returns

nuint

Init(MemoryFlags, Allocator, Memory, nuint, nuint, nuint, nuint)

public void Init(MemoryFlags flags, Allocator allocator, Memory parent, nuint maxsize, nuint align, nuint offset, nuint size)

Parameters

flags MemoryFlags
allocator Allocator
parent Memory
maxsize nuint
align nuint
offset nuint
size nuint

IsSpan(Memory, out nuint)

public bool IsSpan(Memory mem2, out nuint offset)

Parameters

mem2 Memory
offset nuint

Returns

bool

IsType(string)

[Version("1.2")]
public bool IsType(string memType)

Parameters

memType string

Returns

bool

MakeMapped(out MapInfo, MapFlags)

public Memory? MakeMapped(out MapInfo info, MapFlags flags)

Parameters

info MapInfo
flags MapFlags

Returns

Memory

Map(out MapInfo, MapFlags)

public bool Map(out MapInfo info, MapFlags flags)

Parameters

info MapInfo
flags MapFlags

Returns

bool

Resize(long, nuint)

public void Resize(long offset, nuint size)

Parameters

offset long
size nuint

Share(long, long)

public Memory Share(long offset, long size)

Parameters

offset long
size long

Returns

Memory

Unmap(MapInfo)

public void Unmap(MapInfo info)

Parameters

info MapInfo