Space Engineers
Public Member Functions | List of all members
VRage.Utils.MyQuantizer Class Reference

Public Member Functions

 MyQuantizer (int quantizationBits)
 
byte QuantizeValue (byte val)
 
void SetAllFromUnpacked (byte[] dstPacked, int dstSize, byte[] srcUnpacked)
 
void WriteVal (byte[] packed, int idx, byte val)
 
byte ReadVal (byte[] packed, int idx)
 
int ComputeRequiredPackedSize (int unpackedSize)
 
int GetMinimumQuantizableValue ()
 

Detailed Description

Definition at line 8 of file MyQuantizer.cs.

Constructor & Destructor Documentation

VRage.Utils.MyQuantizer.MyQuantizer ( int  quantizationBits)
inline

Definition at line 22 of file MyQuantizer.cs.

Member Function Documentation

int VRage.Utils.MyQuantizer.ComputeRequiredPackedSize ( int  unpackedSize)
inline

Definition at line 97 of file MyQuantizer.cs.

int VRage.Utils.MyQuantizer.GetMinimumQuantizableValue ( )
inline

Definition at line 102 of file MyQuantizer.cs.

byte VRage.Utils.MyQuantizer.QuantizeValue ( byte  val)
inline

Definition at line 50 of file MyQuantizer.cs.

byte VRage.Utils.MyQuantizer.ReadVal ( byte[]  packed,
int  idx 
)
inline

Definition at line 85 of file MyQuantizer.cs.

void VRage.Utils.MyQuantizer.SetAllFromUnpacked ( byte[]  dstPacked,
int  dstSize,
byte[]  srcUnpacked 
)
inline

Definition at line 55 of file MyQuantizer.cs.

void VRage.Utils.MyQuantizer.WriteVal ( byte[]  packed,
int  idx,
byte  val 
)
inline

Definition at line 71 of file MyQuantizer.cs.


The documentation for this class was generated from the following file: