Function

GLib-2.0GLibbase64_encode_closeSince 2.12

  • Flush the status from a sequence of calls to g_base64_encode_step().

    The output buffer must be large enough to fit all the data that will be written to it. It will need up to 4 bytes, or up to 5 bytes if line-breaking is enabled.

    The out array will not be automatically nul-terminated.

    Parameters

    • break_lines: boolean

      whether to break long lines

    • state: number

      Saved state from g_base64_encode_step()

    • save: number

      Saved state from g_base64_encode_step()

    Returns [number, Uint8Array<ArrayBufferLike>, number, number]

    The number of bytes of output that was written

    2.12