MCPcopy Create free account
hub / github.com/Signalsmith-Audio/reverb-example-code / read16

Method read16

wav.h:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9template<bool littleEndian=true>
10struct BigEndian {
11 static uint32_t read16(std::istream& in) {
12 unsigned char a[2];
13 in.read((char*)a, sizeof(a));
14 return ((uint32_t)a[0]) + ((uint32_t)a[1])*256;
15 }
16 static uint32_t read32(std::istream& in) {
17 unsigned char a[4];
18 in.read((char*)a, sizeof(a));

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected