void (final @NotNull ByteBuffer buffer, final int entryStartOffset, final byte firstByte) { assert buffer.limit() >= entryStartOffset + MEDIUM_HEADER_SIZE : "Invalid record(@" + entryStartOffset + ") format: " + "header[0](=" + Integer.toBinaryString(Byte.toUnsignedInt(firstByte)) + " -> medium record) but there is no header[1] byte. " + "buffer[pos: " + buffer.position() + ", lim: " + buffer.limit() + "]: " + IOUtil.toHexString(buffer); }