Пример #1
0
 public ReadOnlySpan <byte> AsSpan()
 {
     unsafe {
         var dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, out var length);
         return(new ReadOnlySpan <byte> (dataPtr, length));
     }
 }
Пример #2
0
        public unsafe ReadOnlySpan <byte> AsSpan()
        {
            uint length;
            var  dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, &length);

            return(new ReadOnlySpan <byte> (dataPtr, (int)length));
        }
Пример #3
0
 public Stream AsStream()
 {
     unsafe {
         var dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, out var length);
         return(new UnmanagedMemoryStream(dataPtr, length));
     }
 }
Пример #4
0
        public unsafe Stream AsStream()
        {
            uint length;
            var  dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, &length);

            return(new UnmanagedMemoryStream((byte *)dataPtr, length));
        }