Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteUTF8() [1/2]

unsafe void System.Reflection.Metadata.BlobWriter.WriteUTF8 ( string str,
int start,
int length,
bool allowUnpairedSurrogates,
bool prependSize )
inlineprivate

Definition at line 400 of file BlobWriter.cs.

401 {
402 fixed (char* ptr = str)
403 {
404 char* ptr2 = ptr + start;
405 int uTF8ByteCount = BlobUtilities.GetUTF8ByteCount(ptr2, length);
406 if (prependSize)
407 {
408 WriteCompressedInteger(uTF8ByteCount);
409 }
410 int start2 = Advance(uTF8ByteCount);
411 _buffer.WriteUTF8(start2, ptr2, length, uTF8ByteCount, allowUnpairedSurrogates);
412 }
413 }

References System.Reflection.Metadata.BlobWriter._buffer, System.Reflection.Metadata.BlobWriter.Advance(), System.Reflection.BlobUtilities.GetUTF8ByteCount(), System.length, System.start, System.str, and System.Reflection.Metadata.BlobWriter.WriteCompressedInteger().