private static ByteBuf getChannelBuffer(byte[] body) {
        // [totalSize] | [body]
        int totalLength = body.length;
        ByteBuf buffer = ByteBufAllocator.DEFAULT.buffer(HEAD_LENGTH + totalLength);
        buffer.writeInt(totalLength);
        buffer.writeBytes(body);
        return buffer;
    }
Audit commands, used to get various of ByteBuf.
inlong-audit/audit-common/src/main/java/org/apache/inlong/audit/protocol/Commands.java