bend-kit-cbor
Search uses release 0.3.0.0 · 96 definitions
Definitions (96)
- type W64Raw words preserve CBOR integer and floating-point bit patterns.
- type Float
- type Simple
- type Val
- type W
- def grow.if
- def put
- def finish.buf
- def byte
- def finish
- def empty
- def head.small
- def head.u32.sixteen
- def head.u32.eight
- def head.u32.small
- def head.u32
- def raw.u32
- def uint.bytes.small
- def uint.bytes
- def raw.bytes.go
- def raw.bytes
- type CpRFC 3629 §4 validity, as in json: overlong forms, surrogates, and code points past U+10FFFF have width 0.
- def pk.if
- def pkByte i, or 256 at end, which no rule accepts.
- def cont
- def utf8.n
- def utf8.b3
- def utf8.b2
- def utf8.b1
- def utf8.cp
- def utf8.byte
- def utf8.lead
- def utf8.more
- def utf8.step
- def utf8.goEach step eats a whole code point, so end - i steps reach end.
- def utf8.checkAre bytes i until end well-formed UTF-8?
- def text.fin
- def text.check
- def simple.okSimple values 20..23 have their own constructors, 24..31 are reserved (RFC 8949 §3.3).
- type ItemIGuard aborts the encoding when a value has no CBOR form; IText carries a text string and its UTF-8 check.
- def vals.length.put
- def pairs.length.put
- def vals.length
- def pairs.length
- def size.arr
- def size.obj
- def size.cons
- def size.pair
- def size.tag
- def sizev, and at least the number of encode.go steps it takes.
- def encode.gofuel bounds the steps; size(v) gives enough, so the 0n arm is never reached.
- def encode.done
- def encode.sized
- def encodeDefinite lengths and the shortest head for every length, integer, and tag; floats keep their width.
- def decode.other
- def decode.simple
- def decode.major7.arg
- def decode.major7
- type HdA head: major type, additional info, argument, and the index after it.
- def hd.wordsn argument bytes from j, most significant first.
- def hd.wide
- def hd.argai 24..27 take 1, 2, 4 or 8 more bytes; 28..30 are reserved; 31 is indefinite or break.
- def hd.of
- def hd.read
- def bstr.some
- def bstr.copy
- def bstr.valid
- def bstr.fit
- def bstr.readA definite string of arg bytes from i.
- def wrap
- type FrameAn open container.
- type StSHead reads an item at i; SChunk reads the next chunk of an indefinite string; SDone hands v to the open frame.
- def item.str
- def item.empty
- def item.push
- def item.open
- def item.count
- def item.lenEvery item takes a byte, so a count past the bytes left is malformed; this also keeps it in a U32.
- def item.simple
- def item.def
- def brk.frA break closes the innermost indefinite array, or map with no key pending; anywhere else it is malformed.
- def brk
- def item.indefai 31: indefinite string, array, or map, or (major 7) a break.
- def item.hd
- def step.head
- def chunk.str
- def chunk.more
- def chunk.endEach chunk is a definite string of the same major type, UTF-8 by itself for text (RFC 8949 §3.2.3).
- def step.chunk
- def done.arr
- def done.map
- def done.fr
- def done.top
- def doneA finished top-level item must end the input.
- def run
- def decodeOne well-formed data item (RFC 8949 §3, Appendix C) filling b.