MCPcopy Create free account
hub / github.com/Tracktion/choc / putByte

Method putByte

choc/containers/choc_zlib.h:1172–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170 };
1171
1172 template <typename Type> void putByte (Type n) { pending_buf[pending++] = static_cast<uint8_t> (n); }
1173 template <typename Type> void putInt16 (Type n) { putByte (static_cast<uint16_t> (n)); putByte (static_cast<uint16_t> (n) >> 8); }
1174 template <typename Type> void putInt32 (Type n) { putInt16 (static_cast<uint32_t> (n)); putInt16 (static_cast<uint32_t> (n) >> 16); }
1175 template <typename Type> void putInt16MSB (Type n) { putByte (static_cast<uint16_t> (n) >> 8); putByte (static_cast<uint16_t> (n)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected