let dutData : [UInt8] = [1,2,3]
var buff = ByteBuffer(bytes: dutData)
let foo: Foo = try getCheckedRoot(byteBuffer: &buff, fileId: "ABCD")
FlatBuffers/ByteBuffer.swift:470: Assertion failed: Reading out of bounds is illegal
With try getCheckedRoot(byteBuffer: &buff), throws an out of bounds error (which seems correct), but with "fileid", you get an unrecoverable assert.