public static void writeVarbinary(byte[] bytes, ByteBuffer buf) throws IOException {
        if (bytes == null) {
            buf.putInt(VoltType.NULL_STRING_LENGTH);
            return;
        }

        buf.putInt(bytes.length);
        buf.put(bytes);
    }
public static void writeVarbinary ( byte [ ] bytes , ByteBuffer buf ) throws IOException { if ( bytes == null ) { buf . putInt ( VoltType . NULL_STRING_LENGTH ) ; return ; } buf . putInt ( bytes . length ) ; buf . put ( bytes ) ; }
Write a set of bytes in the standard VoltDB way