core/utils

    Dark Mode
Search:
Group by:

Funcs

func toByteSeq(str: string): seq[byte] {...}{.inline, raises: [], tags: [].}
Converts a string to the corresponding byte sequence.   Source Edit
func fromByteSeq(sequence: openArray[byte]): string {...}{.inline, raises: [],
    tags: [].}
Converts a byte sequence to the corresponding string.   Source Edit
func serialize(number: int64): array[8, byte] {...}{.inline, raises: [], tags: [].}
Serializes int64 to byte array.   Source Edit
func serialize(number: int32): array[4, byte] {...}{.inline, raises: [], tags: [].}
Serializes int32 to byte array.   Source Edit
func serialize(number: int16): array[2, byte] {...}{.inline, raises: [], tags: [].}
Serializes int16 to byte array.   Source Edit
func escape(src: string): string {...}{.raises: [], tags: [].}
  Source Edit

Templates

template since(version, body: untyped) {...}{.dirty.}
limitation: can't be used to annotate a template (eg typetraits.get), would error: cannot attach a custom pragma.   Source Edit
template sinceAPI(version, body: untyped) {...}{.dirty.}
limitation: can't be used to annotate a template (eg typetraits.get), would error: cannot attach a custom pragma.   Source Edit
template beforeAPI(version, body: untyped) {...}{.dirty.}
limitation: can't be used to annotate a template (eg typetraits.get), would error: cannot attach a custom pragma.   Source Edit