mimekit-ts - v1.0.0
    Preparing search index...

    Function tryParseInt32

    • Try to parse a 32-bit integer from the current cursor position.

      Parameters

      • text: Uint8Array

        Input byte buffer.

      • cursor: ParseCursor

        Cursor advanced past the parsed integer.

      • endIndex: number

        Exclusive end index.

      Returns Result<number>

      a Result; { ok: false } with a MimeError on malformed input or integer overflow.

      text, cursor, or endIndex has an invalid type.

      cursor.index or endIndex is outside text.