Class Batch
Inheritance
System.Object
Inherited Members
Show
Syntax
public abstract class Batch
Constructors
Batch(Int32)
Declaration
public Batch(int maxPacketSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxPacketSize |
Fields
MESSAGE_LENGTH_SIZE
Declaration
public const int MESSAGE_LENGTH_SIZE = 2
Properties
Created
Declaration
protected abstract bool Created { get; }
Methods
GetBatch()
Declaration
protected abstract byte[] GetBatch()
Returns
Type | Description |
---|---|
System.Byte[] |
GetBatchLength()
Declaration
protected abstract int GetBatchLength()
Returns
Type | Description |
---|---|
System.Int32 |
CreateNewBatch()
Declaration
protected abstract void CreateNewBatch()
SendAndReset()
Declaration
protected abstract void SendAndReset()
AddMessage(Byte[], Int32, Int32)
Declaration
public void AddMessage(byte[] message, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | message | |
System.Int32 | offset | |
System.Int32 | length |
Flush()
Declaration
public void Flush()