MCPcopy Create free account
hub / github.com/chrxh/alien / writeByte

Function writeByte

source/EngineInterface/GenomeDescriptionService.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace
10{
11 void writeByte(std::vector<uint8_t>& data, int value)
12 {
13 data.emplace_back(static_cast<uint8_t>(value));
14 }
15 void writeOptionalByte(std::vector<uint8_t>& data, std::optional<int> value)
16 {
17 data.emplace_back(static_cast<uint8_t>(value.value_or(-1)));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected