public void validateContext(ByteBuffer context) throws MarshalException
{
int headerLength = headerLength(context);
if (headerLength < 0 || (context.remaining() - headerLength) % STEP_LENGTH != 0)
throw new MarshalException("Invalid size for a counter context");
}