Fix flatbuffers serialization

This commit is contained in:
Isaac
2025-03-25 12:36:31 +01:00
parent a4b39e6fd0
commit 2739a839ed
4 changed files with 24 additions and 14 deletions

View File

@@ -16,9 +16,9 @@ public func FlatBuffers_getRoot<T: FlatBufferObject & Verifiable>(
options: VerifierOptions = .init()
) -> T {
if flatBuffers_checkedGet {
return getRoot(byteBuffer: &byteBuffer)
} else {
return try! getCheckedRoot(byteBuffer: &byteBuffer, fileId: fileId, options: options)
} else {
return getRoot(byteBuffer: &byteBuffer)
}
}