MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / read_be32

Function read_be32

src/common/image/image_reader.cpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30namespace {
31static uint32_t read_be32(const uint8_t* ptr) {
32 return (static_cast<uint32_t>(ptr[0]) << 24) |
33 (static_cast<uint32_t>(ptr[1]) << 16) |
34 (static_cast<uint32_t>(ptr[2]) << 8) |
35 static_cast<uint32_t>(ptr[3]);
36}
37
38static bool has_valid_png_structure(const uint8_t* data, size_t size) {
39 if (!data || size < 8) {

Callers 1

has_valid_png_structureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected