Struct NativeText.ReadOnly
A read-only alias for the value of a NativeText. Does not have its own allocated storage.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
[NativeContainer]
[NativeContainerIsReadOnly]
public struct NativeText.ReadOnly : INativeList<byte>, IIndexable<byte>, IUTF8Bytes
Properties
Name | Description |
---|---|
Capacity | The current capacity in bytes of this string. |
Is |
Whether this string has no characters. |
this[int] | The byte at an index. |
Length | The current length in bytes of this string. |
Methods
Name | Description |
---|---|
Clear() | Sets the length to 0. For a NativeText.Readonly this function does nothing, unless safety checks are enabled (in which case it throws). |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Compare |
Returns the lexicographical sort order of this string relative to another. |
Element |
Returns a reference to the byte (not character) at an index. Unsupported by NativeText.ReadOnly. |
Equals(object) | Returns true if this string and another object are equal. |
Equals(string) | Returns true if this string and another are equal. |
Equals(Fixed |
Returns true if this string and another are equal. |
Equals(Fixed |
Returns true if this string and another are equal. |
Equals(Fixed |
Returns true if this string and another are equal. |
Equals(Fixed |
Returns true if this string and another are equal. |
Equals(Fixed |
Returns true if this string and another are equal. |
Equals(Native |
Returns true if this string and another are equal. |
Equals(Read |
Returns true if this string and another are equal. |
Get |
Returns an enumerator for iterating over the characters of the NativeText. |
Get |
Returns a hash code of this string. |
Get |
Returns a pointer to this string's character buffer. |
To |
Returns a managed string copy of this string. |
Try |
Attempt to set the length in bytes of this string. For NativeText.ReadOnly this function is a no-op and always returns false. |
Operators
Name | Description |
---|---|
operator ==(in Read |
Returns true if two strings are equal. |
operator ==(in Read |
Returns true if two strings are equal. |
operator ==(in Read |
Returns true if two strings are equal. |
operator ==(in Read |
Returns true if two strings are equal. |
operator ==(in Read |
Returns true if two strings are equal. |
operator !=(in Read |
Returns true if two strings are unequal. |
operator !=(in Read |
Returns true if two strings are unequal. |
operator !=(in Read |
Returns true if two strings are unequal. |
operator !=(in Read |
Returns true if two strings are unequal. |
operator !=(in Read |
Returns true if two strings are unequal. |