C# Class RampUp.Ring.RingBufferDescriptor

Show file Open project: Scooletz/RampUp

Public Properties

Property Type Description
ConsumerHeartbeatOffset int
CorrelationCounterOffset int
HeadCachePositionOffset int
HeadPositionOffset int
LengthOffset int
TailPositionOffset int
TrailerLength int
TypeOffset int

Public Methods

Method Description
EncodedMsgOffset ( int recordOffset ) : int
EnsureCapacity ( IUnsafeBuffer buffer ) : void

Checks the buffer capacity

MakeHeader ( int length, int messageTypeId ) : long
MessageTypeId ( long header ) : int
RecordLength ( long header ) : int
ValidateMessageTypeId ( int messageTypeId ) : void

Private Methods

Method Description
RingBufferDescriptor ( ) : System

Method Details

EncodedMsgOffset() public static method

public static EncodedMsgOffset ( int recordOffset ) : int
recordOffset int
return int

EnsureCapacity() public static method

Checks the buffer capacity
public static EnsureCapacity ( IUnsafeBuffer buffer ) : void
buffer IUnsafeBuffer
return void

MakeHeader() public static method

public static MakeHeader ( int length, int messageTypeId ) : long
length int
messageTypeId int
return long

MessageTypeId() public static method

public static MessageTypeId ( long header ) : int
header long
return int

RecordLength() public static method

public static RecordLength ( long header ) : int
header long
return int

ValidateMessageTypeId() public static method

public static ValidateMessageTypeId ( int messageTypeId ) : void
messageTypeId int
return void

Property Details

ConsumerHeartbeatOffset public static property

Offset within the trailer for where the consumer heartbeat time value is stored.
public static int ConsumerHeartbeatOffset
return int

CorrelationCounterOffset public static property

Offset within the trailer for where the correlation counter value is stored.
public static int CorrelationCounterOffset
return int

HeadCachePositionOffset public static property

Offset within the trailer for where the head cache value is stored.
public static int HeadCachePositionOffset
return int

HeadPositionOffset public static property

Offset within the trailer for where the head value is stored.
public static int HeadPositionOffset
return int

LengthOffset public static property

Offset within the record at which the record length field begins.
public static int LengthOffset
return int

TailPositionOffset public static property

Offset within the trailer for where the tail value is stored.
public static int TailPositionOffset
return int

TrailerLength public static property

Total length of the trailer in bytes.
public static int TrailerLength
return int

TypeOffset public static property

Offset within the record at which the message type field begins.
public static int TypeOffset
return int