docs: function encodeDouble(value) {
      let buffer = new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY, ByteBuffer.LITTLE_ENDIAN);
      if (value === null) {
          return buffer;
      }
      return buffer.writeDouble(value);
  }