public ReadOnlySpan <byte> AsSpan() { unsafe { var dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, out var length); return(new ReadOnlySpan <byte> (dataPtr, length)); } }
public unsafe ReadOnlySpan <byte> AsSpan() { uint length; var dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, &length); return(new ReadOnlySpan <byte> (dataPtr, (int)length)); }
public Stream AsStream() { unsafe { var dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, out var length); return(new UnmanagedMemoryStream(dataPtr, length)); } }
public unsafe Stream AsStream() { uint length; var dataPtr = HarfBuzzApi.hb_blob_get_data(Handle, &length); return(new UnmanagedMemoryStream((byte *)dataPtr, length)); }