function check_vector_bounds
Swift
func check_vector_bounds(buffer: UnsafeRawPointer, bufferSize: Int, offset: Int, elementSize: Int) -> Bool
Check that a vector/string field has valid bounds The first 4 bytes at offset contain the relative data offset (from offset) The next 4 bytes contain the count
buffer- Raw buffer pointer
bufferSize- Total buffer size in bytes
offset- Offset where vector header starts
elementSize- Size of each element
Returns true if valid, false if out of bounds
nprpc_swift/Sources/NPRPC/Marshalling.swift:338