rodutils

Serialization utilities for the compiler.

Procs

proc toStrMaxPrecision(f: BiggestFloat; literalPostfix = ""): string {...}{.
    raises: [], tags: [].}
Source Edit
proc encodeStr(s: string; result: var string) {...}{.raises: [], tags: [].}
Source Edit
proc decodeStr(s: cstring; pos: var int): string {...}{.raises: [], tags: [].}
Source Edit
proc encodeVBiggestInt(x: BiggestInt; result: var string) {...}{.raises: [], tags: [].}
encode a biggest int as a variable length base 190 int. Source Edit
proc encodeVInt(x: int; result: var string) {...}{.raises: [], tags: [].}
encode an int as a variable length base 190 int. Source Edit
proc decodeVInt(s: cstring; pos: var int): int {...}{.raises: [], tags: [].}
Source Edit
proc decodeVBiggestInt(s: cstring; pos: var int): BiggestInt {...}{.raises: [],
    tags: [].}
Source Edit

Iterators

iterator decodeVIntArray(s: cstring): int {...}{.raises: [], tags: [].}
Source Edit
iterator decodeStrArray(s: cstring): string {...}{.raises: [], tags: [].}
Source Edit

© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/rodutils.html