cbor_serialization/reader_desc

Search:
Group by:
Source   Edit  

Types

CborParser = object
  stream*: InputStream
  conf*: CborReaderConf
  currDepth*: int
Source   Edit  
CborReader[Flavor] = object
  parser*: CborParser
Source   Edit  
CborReaderError = object of CborError
  pos*: int
Source   Edit  
UnexpectedFieldError = object of CborReaderError
  encounteredField*: string
  deserializedType*: cstring
Source   Edit  

Procs

proc init(T: type CborParser; stream: InputStream;
          conf: CborReaderConf = defaultCborReaderConf): T:type {....raises: [],
    gcsafe.}
Source   Edit  
proc init(T: type CborReader; stream: InputStream;
          conf: CborReaderConf = defaultCborReaderConf): T:type {....raises: [],
    gcsafe.}
Source   Edit  
func raiseIncompleteObject(p: CborParser; objectType: cstring) {.noreturn,
    ...raises: [CborReaderError], raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
func raiseIntOverflow(p: CborParser; absIntVal: BiggestUInt; isNegative: bool) {.
    noreturn, ...raises: [CborReaderError], raises: [], gcsafe, tags: [],
    forbids: [].}
Source   Edit  
func raiseUnexpectedField(p: CborParser; fieldName: string;
                          deserializedType: cstring) {.noreturn,
    ...raises: [CborReaderError], raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
func raiseUnexpectedValue(p: CborParser; expected, found: string) {.noreturn,
    ...raises: [CborReaderError], raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
func raiseUnexpectedValue(p: CborParser; msg: string) {.noreturn,
    ...raises: [CborReaderError], raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  

Methods

method formatMsg(err: ref CborReaderError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref IncompleteObjectError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref IntOverflowError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref UnexpectedValueError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  

Templates

template raiseUnexpectedValue(r: CborReader; msg: string) {..}
Source   Edit  
template Reader(T`gensym0: type Cbor; F`gensym0: distinct type = DefaultFlavor): type {..}
Source   Edit  
template ReaderType(T`gensym0: type Cbor;
                    F`gensym0: distinct type = DefaultFlavor): type {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: array](r`gensym45: var U;
    value`gensym45: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: bool](r`gensym10: var U;
    value`gensym10: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborBytes](r`gensym89: var U;
    value`gensym89: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborNumber](r`gensym61: var U;
    value`gensym61: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborSimpleValue](r`gensym84: var U;
    value`gensym84: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborTag](r`gensym66: var U;
    value`gensym66: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborValueRef](r`gensym76: var U;
    value`gensym76: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborVoid](r`gensym71: var U;
    value`gensym71: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: enum](r`gensym25: var U;
    value`gensym25: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: object](r`gensym95: var U;
    value`gensym95: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: openArray](r`gensym50: var U;
    value`gensym50: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: ptr](r`gensym20: var U;
    value`gensym20: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: range](r`gensym55: var U;
    value`gensym55: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: ref](r`gensym15: var U;
    value`gensym15: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: seq](r`gensym40: var U;
    value`gensym40: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: SomeFloat](r`gensym35: var U;
    value`gensym35: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: SomeInteger](r`gensym30: var U;
    value`gensym30: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: string](r`gensym5: var U;
    value`gensym5: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: TT`gensym75](r`gensym81: var U;
    value`gensym81: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: tuple](r`gensym100: var U;
    value`gensym100: var W) {..}
Source   Edit