MCPcopy Create free account
hub / github.com/D7EAD/mkPIVM / u16

Method u16

include/mkpivm/bytecode.h:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 void u8 (std::uint8_t v) { buf_.push_back(v); }
17
18 void u16(std::uint16_t v) {
19 buf_.push_back(static_cast<std::uint8_t>(v));
20 buf_.push_back(static_cast<std::uint8_t>(v >> 8));
21 }
22
23 void u32(std::uint32_t v) {
24 for (int i = 0; i < 4; ++i) buf_.push_back(static_cast<std::uint8_t>(v >> (8*i)));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected