flatbuffers
flatbuffers copied to clipboard
[swift] Update tutorial for getRootAs -> getCheckedRoot
WRT #7738, the tutorial still gives
// create a ByteBuffer(:) from an [UInt8] or Data()
let buf = // Get your data
// Get an accessor to the root object inside the buffer.
let monster = Monster.getRootAsMonster(bb: ByteBuffer(bytes: buf))