MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / streamRead

Method streamRead

src/Abyss/Streams/AudioStream.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#endif
9
10int Abyss::Streams::AudioStream::streamRead(uint8_t *buffer, const int size) {
11 _stream.read(reinterpret_cast<char *>(buffer), size);
12 if (_stream) {
13 return static_cast<int>(_stream.gcount());
14 }
15 return -1;
16}
17
18int Abyss::Streams::AudioStream::streamReadCallback(void *opaque, uint8_t *buffer, const int size) {
19 return static_cast<AudioStream *>(opaque)->streamRead(buffer, size);

Callers 1

streamReadCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected