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
Handle
public MemoryOwnedHandle Handle { get; }
Property Value
Maxsize
public nuint Maxsize { get; set; }
Property Value
Offset
public nuint Offset { get; set; }
Property Value
Size
public nuint Size { get; set; }
Property Value
Methods
Copy(long, long)
public Memory? Copy(long offset, long size)
Parameters
Returns
Equals(Memory?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Memory? other)
Parameters
other
MemoryAn object to compare with this object.
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
GetGType()
public static Type GetGType()
Returns
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
Returns
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
MemoryFlagsallocator
Allocatorparent
Memorymaxsize
nuintalign
nuintoffset
nuintsize
nuint
IsSpan(Memory, out nuint)
public bool IsSpan(Memory mem2, out nuint offset)
Parameters
Returns
IsType(string)
[Version("1.2")]
public bool IsType(string memType)
Parameters
memType
string
Returns
MakeMapped(out MapInfo, MapFlags)
public Memory? MakeMapped(out MapInfo info, MapFlags flags)
Parameters
Returns
Map(out MapInfo, MapFlags)
public bool Map(out MapInfo info, MapFlags flags)
Parameters
Returns
Resize(long, nuint)
public void Resize(long offset, nuint size)
Parameters
Share(long, long)
public Memory Share(long offset, long size)
Parameters
Returns
Unmap(MapInfo)
public void Unmap(MapInfo info)
Parameters
info
MapInfo