MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / serialize_binary

Method serialize_binary

source/src/typepack/TypePack.h:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 }
336 static constexpr Type choose_uint_type(uint64_t value)
337 {
338 if (value <= UINT8_MAX) return Type::UInt8;
339 if (value <= UINT16_MAX) return Type::UInt16;
340 if (value <= UINT32_MAX) return Type::UInt32;
341 return Type::UInt64;
342 }
343 static constexpr Type choose_obj_type(size_t count)
344 {
345 if (count <= UINT8_MAX) return Type::Object8;
346 if (count <= UINT16_MAX) return Type::Object16;

Callers

nothing calls this directly

Calls 4

endMethod · 0.80
beginMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected