Skip to content

v1.0.0

Compare
Choose a tag to compare
@calebkleveter calebkleveter released this 19 Apr 15:21
· 53 commits to master since this release
caad986

Streaming

let chunks: [[UInt8]] = // ...
var parser = Parser(onHeader: nil, onCell: { header, cell in 
    print(String(decoding: header, as: UTF8.self) + ":", String(decoding: cell, as: UTF8.self))
})
chunks.forEach { chunk in
    parser.parse(chunk)
}
// Array<Dictionary<Title, Cell?>>
let data: [[UInt8]: [[UInt8]?]] = // ...

var serializer = Serializer(onRow: { row in
    print(String(decoding: row, as: UTF8.self))
})
data.forEach { row in
    serializer.serialize(row)
}