mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 02:32:25 +00:00
Removes the inner loop in the endtable check written tables (#5803)
This commit is contained in:
@@ -118,7 +118,7 @@ public final class ByteBuffer {
|
||||
/// - size: Size of Value being written to the buffer
|
||||
func push(struct value: UnsafeMutableRawPointer, size: Int) {
|
||||
ensureSpace(size: UInt32(size))
|
||||
_memory.advanced(by: writerIndex - size).copyMemory(from: value, byteCount: size)
|
||||
memcpy(_memory.advanced(by: writerIndex - size), value, size)
|
||||
defer { value.deallocate() }
|
||||
_writerSize += size
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user