src/prologue/core/utils

Source   Edit  

Procs

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

Templates

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  
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