MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / verify

Method verify

projects/Ruby/proto/test.rb:7525–7536  ·  view source on GitHub ↗

Check if the struct value is valid

Source from the content-addressed store, hash-verified

7523
7524 # Check if the struct value is valid
7525 def verify
7526 if (buffer.offset + @_model.fbe_offset - 4) > buffer.size
7527 return false
7528 end
7529
7530 fbe_full_size = read_uint32(@_model.fbe_offset - 4)
7531 if fbe_full_size < @_model.fbe_size
7532 return false
7533 end
7534
7535 @_model.verify
7536 end
7537
7538 # Create a new model (begin phase)
7539 def create_begin

Callers

nothing calls this directly

Calls 5

offsetMethod · 0.45
fbe_offsetMethod · 0.45
sizeMethod · 0.45
fbe_sizeMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected