code: public byte[] readVarArray() throws IOException {
      int len = (int) readVarLong();
      byte[] result = new byte[len];
      in.read(result);
      return result;
    }
docs: Read a array with a varint prefixed length