MCPcopy Create free account
hub / github.com/SFML/SFML / encode

Function encode

src/SFML/Audio/SoundFileWriterWav.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45// and writes them to a stream as little endian
46
47void encode(std::ostream& stream, std::int16_t value)
48{
49 const std::array bytes = {static_cast<char>(value & 0xFF), static_cast<char>(value >> 8)};
50 stream.write(bytes.data(), bytes.size());
51}
52
53void encode(std::ostream& stream, std::uint16_t value)
54{

Callers 4

writeMethod · 0.70
writeHeaderMethod · 0.70
closeMethod · 0.70
Utf.test.cppFile · 0.50

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected