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  
CborUnexpectedFieldError = 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 raiseNotEnoughBytes(p: CborParser; msg: string) {.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 CborIncompleteObjectError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref CborIntOverflowError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref CborNotEnoughBytesError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref CborReaderError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  
method formatMsg(err: ref CborUnexpectedValueError; filename: string): string {.
    ...raises: [], gcsafe, tags: [], forbids: [].}
Source   Edit  

Templates

template raiseIncompleteObject(r: CborReader; objectType: cstring) {..}
Source   Edit  
template raiseUnexpectedValue(r: CborReader; msg: string) {..}
Source   Edit  
template Reader(T`gensym0: type Cbor; F`gensym0: distinct type = Flavor`gensym0): type {..}
Source   Edit  
template ReaderType(T`gensym0: type Cbor;
                    F`gensym0: distinct type = Flavor`gensym0): type {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: array](r`gensym47: var U;
    value`gensym47: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: bool](r`gensym12: var U;
    value`gensym12: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborBytes](r`gensym91: var U;
    value`gensym91: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborNumber](r`gensym63: var U;
    value`gensym63: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborSimpleValue](r`gensym86: var U;
    value`gensym86: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborTag](r`gensym68: var U;
    value`gensym68: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborValueRef](r`gensym78: var U;
    value`gensym78: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: CborVoid](r`gensym73: var U;
    value`gensym73: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: enum](r`gensym27: var U;
    value`gensym27: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: object](r`gensym97: var U;
    value`gensym97: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: openArray](r`gensym52: var U;
    value`gensym52: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: ptr](r`gensym22: var U;
    value`gensym22: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: range](r`gensym57: var U;
    value`gensym57: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: ref](r`gensym17: var U;
    value`gensym17: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: seq](r`gensym42: var U;
    value`gensym42: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: SomeFloat](r`gensym37: var U;
    value`gensym37: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: SomeInteger](r`gensym32: var U;
    value`gensym32: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: string](r`gensym7: var U;
    value`gensym7: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: TT`gensym77](r`gensym83: var U;
    value`gensym83: var W) {..}
Source   Edit  
template readValue[U: Reader(Cbor); W: tuple](r`gensym102: var U;
    value`gensym102: var W) {..}
Source   Edit