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

Method putInt16

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

Source from the content-addressed store, hash-verified

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)); }
1176 template <typename Type> void putInt32MSB (Type n) { putInt16MSB (static_cast<uint32_t> (n) >> 16); putInt16MSB (static_cast<uint32_t> (n)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected