/** * Is the frame starting at the termOffset a padding frame at the end of a buffer? * * @param buffer containing the frame. * @param termOffset at which a frame begins. * @return true if the frame is a padding frame otherwise false. */ public static bool IsPaddingFrame(DirectBuffer buffer, int termOffset) { var type = buffer.ReadInt16(TypeOffset(termOffset)); return(type == PADDING_FRAME_TYPE); }
/** * Read the type of of the frame from header. * * @param buffer containing the frame. * @param termOffset at which a frame begins. * @return the value of the frame type header. */ public static int FrameType(DirectBuffer buffer, int termOffset) { return(buffer.ReadInt16(TypeOffset(termOffset)) & 0xFFFF); }