function check_struct_bounds
Swift
func check_struct_bounds(bufferSize: Int, offset: Int, structSize: Int) -> Bool
Check that a struct at the given offset fits within the buffer
bufferSize- Total buffer size in bytes
offset- Offset where struct starts
structSize- Expected size of the struct
Returns true if valid, false if out of bounds
nprpc_swift/Sources/NPRPC/Marshalling.swift:324