public static byte[] readBytes(ByteBuffer buffer) {
        return Utils.readBytes(buffer, 0, buffer.limit());
    }
Read the given byte buffer into a Byte array
clients/src/main/java/org/apache/kafka/common/utils/Utils.java