code: public byte[] readStringNulByBytes() {
          byte[] result = new byte[byteBuf.bytesBefore((byte) 0)];
          byteBuf.readBytes(result);
          byteBuf.skipBytes(1);
          return result;
      }
docs: Read null terminated string from byte buffers and return bytes.
  
  @see <a href="https://dev.mysql.com/doc/internals/en/string.html#packet-Protocol::NulTerminatedString">NulTerminatedString</a>
  
  @return null terminated bytes