Function writeString

  • Convert the string to UTF8. Write the length of the UTF8 version to the stream with major type UTF8_STRING, then the UTF8 bytes.

    Parameters

    • val: string

      String.

    • w: Writer

      Writer.

    • opts: Required

    Returns void