mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 15:56:55 +00:00
Adds a way to verify/exposes Entities ids (#7221)
This commit is contained in:
@@ -400,10 +400,13 @@ public struct ByteBuffer {
|
||||
/// SkipPrefix Skips the first 4 bytes in case one of the following
|
||||
/// functions are called `getPrefixedSizeCheckedRoot` & `getPrefixedSizeRoot`
|
||||
/// which allows us to skip the first 4 bytes instead of recreating the buffer
|
||||
@discardableResult
|
||||
@usableFromInline
|
||||
mutating func skipPrefix() {
|
||||
mutating func skipPrefix() -> Int32 {
|
||||
_writerSize = _writerSize &- MemoryLayout<Int32>.size
|
||||
return read(def: Int32.self, position: 0)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension ByteBuffer: CustomDebugStringConvertible {
|
||||
|
||||
Reference in New Issue
Block a user