MCPcopy Create free account
hub / github.com/google/gapid / check

Method check

core/image/format.go:33–33  ·  view source on GitHub ↗

check returns an error if the combination of data, image width, image height and image depth is invalid for the given format, otherwise check returns nil.

(data []byte, width, height, depth int)

Source from the content-addressed store, hash-verified

31 // height and image depth is invalid for the given format, otherwise check
32 // returns nil.
33 check(data []byte, width, height, depth int) error
34
35 // size returns the number of bytes required to hold an image of the
36 // specified dimensions in this format. If the size varies based on the

Callers 15

CheckMethod · 0.65
TestCyclicDependenciesFunction · 0.65
TestGlobalInitOrderFunction · 0.65
TestStaticArraysFunction · 0.65
TestMapsFunction · 0.65
TestMessagesFunction · 0.65
TestRemoveDeadCodeFunction · 0.65
TestInsertFenceFunction · 0.65
TestInternalFunction · 0.65
TestApiIndexFunction · 0.65
TestRecursiveFunction · 0.65

Calls

no outgoing calls

Tested by 15

TestCyclicDependenciesFunction · 0.52
TestGlobalInitOrderFunction · 0.52
TestStaticArraysFunction · 0.52
TestMapsFunction · 0.52
TestMessagesFunction · 0.52
TestRemoveDeadCodeFunction · 0.52
TestInsertFenceFunction · 0.52
TestInternalFunction · 0.52
TestApiIndexFunction · 0.52
TestRecursiveFunction · 0.52