System.Utf8String.GetUtf8StringByteLength C# (CSharp) Method

GetUtf8StringByteLength() private static method

private static GetUtf8StringByteLength ( void pUtf8String ) : int
pUtf8String void
return int
        private static unsafe int GetUtf8StringByteLength(void* pUtf8String)
        {
            int num = 0;
            for (byte* numPtr = (byte*) pUtf8String; numPtr[0] != 0; numPtr++)
            {
                num++;
            }
            return num;
        }

Usage Example

Example #1
0
 internal unsafe Utf8String(void *pStringHeap)
 {
     this.m_pStringHeap = pStringHeap;
     if (pStringHeap != null)
     {
         this.m_StringHeapByteLength = Utf8String.GetUtf8StringByteLength(pStringHeap);
         return;
     }
     this.m_StringHeapByteLength = 0;
 }
All Usage Examples Of System.Utf8String::GetUtf8StringByteLength