AMPS C# Client  5.3.5.0
AMPS C# Client for .NET
AMPS.Client.Utilities Class Reference

Classes

interface  CRC32
 Represents a CRC32 calculator. More...
 
class  DefaultCRC32
 Represents a default implementation of the CRC32 calculator. More...
 

Static Public Member Functions

static int readInt32 (byte[] buf, long ofs)
 Reads a 32-bit signed integer from the specified byte array starting at the specified byte offset. More...
 
static void writeInt32 (int val, byte[] buf, long ofs)
 Writes a 32-bit signed integer to the specified byte array starting at the specified byte offset. More...
 
static long readLong64 (byte[] buf, long ofs)
 Reads a 64-bit signed integer from the specified byte array starting at the specified byte offset. More...
 
static void writeLong64 (long val, byte[] buf, long ofs)
 Writes a 64-bit signed integer to the specified byte array starting at the specified byte offset. More...
 

Member Function Documentation

◆ readInt32()

static int AMPS.Client.Utilities.readInt32 ( byte[]  buf,
long  ofs 
)
inlinestatic

Reads a 32-bit signed integer from the specified byte array starting at the specified byte offset.

Parameters
bufThe byte array to read from.
ofsThe byte offset at which to begin reading.
Returns
The 32-bit signed integer read from the byte array.

◆ readLong64()

static long AMPS.Client.Utilities.readLong64 ( byte[]  buf,
long  ofs 
)
inlinestatic

Reads a 64-bit signed integer from the specified byte array starting at the specified byte offset.

Parameters
bufThe byte array to read from.
ofsThe byte offset at which to begin reading.
Returns
The 64-bit signed integer read from the byte array.

◆ writeInt32()

static void AMPS.Client.Utilities.writeInt32 ( int  val,
byte[]  buf,
long  ofs 
)
inlinestatic

Writes a 32-bit signed integer to the specified byte array starting at the specified byte offset.

Parameters
valThe 32-bit signed integer to write.
bufThe byte array to write to.
ofsThe byte offset at which to begin writing.

◆ writeLong64()

static void AMPS.Client.Utilities.writeLong64 ( long  val,
byte[]  buf,
long  ofs 
)
inlinestatic

Writes a 64-bit signed integer to the specified byte array starting at the specified byte offset.

Parameters
valThe 64-bit signed integer to write.
bufThe byte array to write to.
ofsThe byte offset at which to begin writing.

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