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

Function streamTell

src/SFML/Audio/SoundFileReaderFlac.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75FLAC__StreamDecoderTellStatus streamTell(const FLAC__StreamDecoder*, FLAC__uint64* absoluteByteOffset, void* clientData)
76{
77 auto* data = static_cast<sf::priv::SoundFileReaderFlac::ClientData*>(clientData);
78
79 if (const std::optional position = data->stream->tell())
80 {
81 *absoluteByteOffset = *position;
82 return FLAC__STREAM_DECODER_TELL_STATUS_OK;
83 }
84
85 return FLAC__STREAM_DECODER_TELL_STATUS_ERROR;
86}
87
88FLAC__StreamDecoderLengthStatus streamLength(const FLAC__StreamDecoder*, FLAC__uint64* streamLength, void* clientData)
89{

Callers

nothing calls this directly

Calls 1

tellMethod · 0.45

Tested by

no test coverage detected