Struct NativeString128
Syntax
public struct NativeString128 : IComparable<NativeString128>, IEquatable<NativeString128>
Constructors
NativeString128(String)
Declaration
public NativeString128(string source)
Parameters
Type |
Name |
Description |
String |
source |
|
NativeString128(ref NativeString32)
Declaration
public NativeString128(ref NativeString32 source)
Parameters
NativeString128(ref NativeString4096)
Declaration
public NativeString128(ref NativeString4096 source)
Parameters
NativeString128(ref NativeString512)
Declaration
public NativeString128(ref NativeString512 source)
Parameters
NativeString128(ref NativeString64)
Declaration
public NativeString128(ref NativeString64 source)
Parameters
Fields
buffer
Declaration
Field Value
LengthInBytes
Declaration
public ushort LengthInBytes
Field Value
MaxLength
Declaration
public const int MaxLength = 126
Field Value
Properties
Utf8Buffer
When the address of the UTF-8 buffer is needed, please use this property.
Declaration
public Bytes1 Utf8Buffer { get; }
Property Value
Utf8BufferLengthInBytes
When the length in bytes of the UTF-8 buffer is needed, please use this property.
Declaration
public int Utf8BufferLengthInBytes { get; set; }
Property Value
Methods
Append(Int32)
Declaration
public FormatError Append(int input)
Parameters
Type |
Name |
Description |
Int32 |
input |
|
Returns
Append(Int64)
Declaration
public FormatError Append(long input)
Parameters
Type |
Name |
Description |
Int64 |
input |
|
Returns
Append(Single, Char)
Declaration
public FormatError Append(float input, char decimalSeparator = '.')
Parameters
Type |
Name |
Description |
Single |
input |
|
Char |
decimalSeparator |
|
Returns
AppendFrom(NativeString128)
Declaration
public CopyError AppendFrom(NativeString128 source)
Parameters
Returns
AppendFrom(NativeString32)
Declaration
public CopyError AppendFrom(NativeString32 source)
Parameters
Returns
AppendFrom(NativeString4096)
Declaration
public CopyError AppendFrom(NativeString4096 source)
Parameters
Returns
AppendFrom(NativeString512)
Declaration
public CopyError AppendFrom(NativeString512 source)
Parameters
Returns
AppendFrom(NativeString64)
Declaration
public CopyError AppendFrom(NativeString64 source)
Parameters
Returns
AppendTo(Byte*, ref UInt16, UInt16)
Declaration
public CopyError AppendTo(byte *d, ref ushort length, ushort maxLength)
Parameters
Returns
AppendTo(Char*, ref UInt16, UInt16)
Declaration
public CopyError AppendTo(char *d, ref ushort length, ushort maxLength)
Parameters
Returns
CompareTo(NativeString128)
Declaration
public int CompareTo(NativeString128 other)
Parameters
Returns
CopyFrom(Char*, UInt16)
Declaration
public CopyError CopyFrom(char *s, ushort length)
Parameters
Returns
CopyFrom(String)
Declaration
public CopyError CopyFrom(string source)
Parameters
Type |
Name |
Description |
String |
source |
|
Returns
CopyFrom(NativeString128)
Declaration
public CopyError CopyFrom(NativeString128 source)
Parameters
Returns
CopyFrom(NativeString32)
Declaration
public CopyError CopyFrom(NativeString32 source)
Parameters
Returns
CopyFrom(NativeString4096)
Declaration
public CopyError CopyFrom(NativeString4096 source)
Parameters
Returns
CopyFrom(NativeString512)
Declaration
public CopyError CopyFrom(NativeString512 source)
Parameters
Returns
CopyFrom(NativeString64)
Declaration
public CopyError CopyFrom(NativeString64 source)
Parameters
Returns
CopyTo(Byte*, out UInt16, UInt16)
Declaration
public CopyError CopyTo(byte *d, out ushort length, ushort maxLength)
Parameters
Returns
CopyTo(Char*, out UInt16, UInt16)
Declaration
public CopyError CopyTo(char *d, out ushort length, ushort maxLength)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Equals(NativeString128)
Declaration
public bool Equals(NativeString128 other)
Parameters
Returns
Declaration
public FormatError Format(int input)
Parameters
Type |
Name |
Description |
Int32 |
input |
|
Returns
Declaration
public FormatError Format(long input)
Parameters
Type |
Name |
Description |
Int64 |
input |
|
Returns
Declaration
public FormatError Format(float input, char decimalSeparator = '.')
Parameters
Type |
Name |
Description |
Single |
input |
|
Char |
decimalSeparator |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Parse(ref Int32, ref Int32)
Declaration
public ParseError Parse(ref int offset, ref int output)
Parameters
Returns
Parse(ref Int32, ref Single, Char)
Declaration
public ParseError Parse(ref int offset, ref float output, char decimalSeparator = '.')
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Implicit(String to NativeString128)
Declaration
public static implicit operator NativeString128(string b)
Parameters
Type |
Name |
Description |
String |
b |
|
Returns
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.