public static int FrameFlags(IAtomicBuffer buffer, int termOffset) { return(buffer.GetByte(FlagsOffset(termOffset))); }
public static int FrameVersion(IAtomicBuffer buffer, int termOffset) { return(buffer.GetByte(VersionOffset(termOffset))); }
public void ShouldGetByteFromBuffer(IAtomicBuffer buffer) { Marshal.WriteByte(buffer.BufferPointer, Index, ByteValue); Assert.That(buffer.GetByte(Index), Is.EqualTo(ByteValue)); }
public void ShouldThrowExceptionWhenOutOfBounds(IAtomicBuffer buffer) { const int index = BufferCapacity; buffer.GetByte(index); }
/// <summary> /// Read the type of of the frame from header. /// </summary> /// <param name="buffer"> containing the frame. </param> /// <param name="termOffset"> at which a frame begins. </param> /// <returns> the value of the frame type header. </returns> public static int FrameVersion(IAtomicBuffer buffer, int termOffset) { return buffer.GetByte(VersionOffset(termOffset)); }