Exemple #1
0
 public static unsafe string GetStringASCII(this RangeAccessor <byte> stringAccessor)
 {
     return(Encoding.ASCII.GetString((byte *)stringAccessor.Data, stringAccessor.Count));
 }
Exemple #2
0
 public static unsafe string GetStringASCII(this RangeAccessor <byte> stringAccessor)
 {
     return(LibreLancer.UnsafeHelpers.PtrToStringUTF8((IntPtr)stringAccessor.Data, stringAccessor.Count));
 }