Class RAPBinary
General Utility functions for dealing with RAP data seen within different encoders, as well as the file format itself.
Inheritance
System.Object
RAPBinary
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Recolude.Core.IO
Assembly: Recolude.Core.dll
Syntax
public static class RAPBinary
Methods
FromFloat16BST(Byte[], Single, Single)
Declaration
public static float FromFloat16BST(byte[] buffer, float min, float max)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Single | min | |
System.Single | max |
Returns
Type | Description |
---|---|
System.Single |
ReadUVarInt(Stream)
Declaration
public static int ReadUVarInt(Stream reader)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | reader |
Returns
Type | Description |
---|---|
System.Int32 |
ToFloat16BST(Byte[], Single, Single, Single)
Declaration
public static void ToFloat16BST(byte[] buffer, float min, float max, float value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Single | min | |
System.Single | max | |
System.Single | value |
WriteUVarInt(BinaryWriter, Int32)
Declaration
public static void WriteUVarInt(BinaryWriter writer, int value)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryWriter | writer | |
System.Int32 | value |
WriteUVarInt(BinaryWriter, UInt32)
Declaration
public static void WriteUVarInt(BinaryWriter writer, uint value)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryWriter | writer | |
System.UInt32 | value |
WriteUVarInt(Stream, Int32)
Declaration
public static void WriteUVarInt(Stream writer, int value)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | writer | |
System.Int32 | value |
WriteUVarInt(Stream, UInt32)
Declaration
public static void WriteUVarInt(Stream writer, uint value)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | writer | |
System.UInt32 | value |