writeLongString(value) {
    const length = Buffer.byteLength(value)

    if (length <= 65535) {
      this.writeString(value)
    } else {
      this.buffer.writeByte(Markers.AMF0.LONG_STRING)
      this.buffer.writeUnsignedInt(length)
      this.buffer.writeUTFBytes(value)
    }
  }
/**
   * Writes an AMF0 long string
   * @param {String} value
   */
Writes an AMF0 long string
@param {String} value
Writes an AMF0 long string @param { String } value
writeLongString(value) {
    const length = Buffer.byteLength(value)
    if (length <= 65535) {
      this.writeString(value)
    } else {
      this.buffer.writeByte(Markers.AMF0.LONG_STRING)
      this.buffer.writeUnsignedInt(length)
      this.buffer.writeUTFBytes(value)
    }
  }
writeLongString ( value ) { const length = Buffer . byteLength ( value ) if ( length <= 65535 ) { this . writeString ( value ) } else { this . buffer . writeByte ( Markers . AMF0 . LONG_STRING ) this . buffer . writeUnsignedInt ( length ) this . buffer . writeUTFBytes ( value ) } }
Writes an AMF0 long string
 @param {String} value
Writes an AMF0 long string @param { String } value