internal void ReadPacket(IntPtr packet_ptr) { if (pointer == IntPtr.Zero || packet_ptr == IntPtr.Zero) { return; } BitStream_Native.BitStream_ReadPacket(pointer, packet_ptr); }
public long ReadLongCompressedDelta(long last_value) { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadLongCompressedDelta(pointer, last_value)); }
public void WriteCompressedDelta(byte value, byte last_value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteByteCompressedDelta(pointer, value, last_value); }
public float ReadFloatCompressed() { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadFloatCompressed(pointer)); }
public void Write(byte value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteByte(pointer, value); }
public long ReadLongCompressed() { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadLongCompressed(pointer)); }
public byte[] GetData() { int data_size = 0; IntPtr data_ptr = BitStream_Native.BitStream_GetData(pointer, ref data_size); Array.Resize(ref GetData_Buffer, data_size); Marshal.Copy(data_ptr, GetData_Buffer, 0, data_size); return(GetData_Buffer); }
public void SetData(byte[] data) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_SetData(pointer, data, data.Length); }
public void IgnoreBytes(int numberOfBytes) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_IgnoreBytes(pointer, numberOfBytes); }
public void Reset() { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_Reset(pointer); }
public uint GetReadPointer() { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_GetReadOffset(pointer)); }
public void SetReadPointer(uint offset) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_SetReadOffset(pointer, offset); }
internal void Close() { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_Close(pointer); }
public void WriteDelta(int value, int last_value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteIntDelta(pointer, value, last_value); }
public void WriteCompressed(int value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteIntCompressed(pointer, value); }
public float ReadFloat16(float min, float max) { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadFloat16(pointer, min, max)); }
public float ReadFloatDelta(float last_value) { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadFloatDelta(pointer, last_value)); }
public int ReadInt() { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadInt(pointer)); }
public int ReadIntCompressedDelta(int last_value) { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadIntCompressedDelta(pointer, last_value)); }
public byte ReadByteCompressedDelta(byte last_value) { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadByteCompressedDelta(pointer, last_value)); }
public short ReadShortDelta(short last_value) { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadShortDelta(pointer, last_value)); }
public void WriteCompressedDelta(long value, long last_value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteLongCompressedDelta(pointer, value, last_value); }
public byte ReadByteCompressed() { if (pointer == IntPtr.Zero) { return(0); } return(BitStream_Native.BitStream_ReadByteCompressed(pointer)); }
public void Write(long value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteLong(pointer, value); }
public void Write(float value, float min, float max) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteFloat16(pointer, value, min, max); }
public void WriteCompressedDelta(float value, float last_value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteFloatCompressedDelta(pointer, value, last_value); }
public void Write(float value) { if (pointer == IntPtr.Zero) { return; } BitStream_Native.BitStream_WriteFloat(pointer, value); }
internal BitStream(IntPtr packet_ptr) { pointer = BitStream_Native.BitStream_Create2(packet_ptr); }
public BitStream() { pointer = BitStream_Native.BitStream_Create1(); Reset(); }