code: function encodeDouble(value) {
      let buffer = new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY, ByteBuffer.LITTLE_ENDIAN);
      if (value === null) {
          return buffer;
      }
      return buffer.writeDouble(value);
  }
docs: Takes in a value and encodes it as a `double` stored in a [ByteBuffer]{@link https://www.npmjs.com/package/bytebuffer} object for use with the protobufjs library.
  @param value - The value to encode.
  @return {ByteBuffer|void}