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

Method verify

projects/Ruby/proto/test.rb:10272–10283  ·  view source on GitHub ↗

Check if the struct value is valid

Source from the content-addressed store, hash-verified

10270
10271 # Check if the struct value is valid
10272 def verify
10273 if (buffer.offset + @_model.fbe_offset - 4) > buffer.size
10274 return false
10275 end
10276
10277 fbe_full_size = read_uint32(@_model.fbe_offset - 4)
10278 if fbe_full_size < @_model.fbe_size
10279 return false
10280 end
10281
10282 @_model.verify
10283 end
10284
10285 # Create a new model (begin phase)
10286 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