public static int write(byte n, IWALByteBufferView buffer) {
    buffer.put(n);
    return Byte.BYTES;
  }
Write a byte n to byteBuffer.

@return The number of bytes used to represent a {@code byte} value in two's complement binary
    form.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/utils/WALWriteUtils.java