code: public String readStringNul() {
          byte[] result = new byte[byteBuf.bytesBefore((byte) 0)];
          byteBuf.readBytes(result);
          byteBuf.skipBytes(1);
          return new String(result);
      }
docs: Read null terminated string from byte buffers.
  
  @return null terminated string