Class StringHandle
public abstract class StringHandle : SafeHandle, IDisposable, IEquatable<StringHandle>
- Inheritance
-
StringHandle
- Implements
- Derived
- Inherited Members
Constructors
StringHandle(bool)
protected StringHandle(bool ownsHandle)
Parameters
ownsHandlebool
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override sealed bool IsInvalid { get; }
Property Value
Methods
Equals(StringHandle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(StringHandle? other)
Parameters
otherStringHandleAn 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
objobjectThe object to compare with the current object.
Returns
GetAllocatedLen()
public nuint GetAllocatedLen()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetLen()
public nuint GetLen()
Returns
GetStr()
public nint GetStr()
Returns
OwnedCopy()
public StringOwnedHandle OwnedCopy()
Returns
SetAllocatedLen(nuint)
public void SetAllocatedLen(nuint value)
Parameters
valuenuint
SetLen(nuint)
public void SetLen(nuint value)
Parameters
valuenuint
SetStr(nint)
public void SetStr(nint value)
Parameters
valuenint
UnownedCopy()
public StringUnownedHandle UnownedCopy()