public static void FillMetaData(UnsafeBuffer cncMetaDataBuffer, int toDriverBufferLength, int toClientsBufferLength, int counterMetaDataBufferLength, int counterValuesBufferLength, long clientLivenessTimeout, int errorLogBufferLength) { cncMetaDataBuffer.PutInt(ToDriverBufferLengthOffset(0), toDriverBufferLength); cncMetaDataBuffer.PutInt(ToClientsBufferLengthOffset(0), toClientsBufferLength); cncMetaDataBuffer.PutInt(CountersMetaDataBufferLengthOffset(0), counterMetaDataBufferLength); cncMetaDataBuffer.PutInt(CountersValuesBufferLengthOffset(0), counterValuesBufferLength); cncMetaDataBuffer.PutLong(ClientLivenessTimeoutOffset(0), clientLivenessTimeout); cncMetaDataBuffer.PutInt(ErrorLogBufferLengthOffset(0), errorLogBufferLength); cncMetaDataBuffer.PutIntVolatile(CncVersionOffset(0), CNC_VERSION); }
public static void SignalCncReady(UnsafeBuffer cncMetaDataBuffer) { cncMetaDataBuffer.PutIntVolatile(CncVersionOffset(0), CNC_VERSION); }
public void MemberId(int memberId) { buffer.PutIntVolatile(MarkFileHeaderEncoder.MemberIdEncodingOffset(), memberId); markFile.MappedByteBuffer().Flush(); }
public void MemberId(int memberId) { buffer.PutIntVolatile(MarkFileHeaderEncoder.MemberIdEncodingOffset(), memberId); }