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

Method verify

projects/Ruby/proto/test.rb:3243–3254  ·  view source on GitHub ↗

Check if the struct value is valid

Source from the content-addressed store, hash-verified

3241
3242 # Check if the struct value is valid
3243 def verify
3244 if (buffer.offset + @_model.fbe_offset - 4) > buffer.size
3245 return false
3246 end
3247
3248 fbe_full_size = read_uint32(@_model.fbe_offset - 4)
3249 if fbe_full_size < @_model.fbe_size
3250 return false
3251 end
3252
3253 @_model.verify
3254 end
3255
3256 # Create a new model (begin phase)
3257 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