DecoderBuffer: add method _get_stream()
This commit is contained in:
parent
06aa689383
commit
a7d9f248ea
|
@ -70,6 +70,12 @@ decoder_buffer_free(DecoderBuffer *buffer)
|
|||
g_free(buffer);
|
||||
}
|
||||
|
||||
const InputStream &
|
||||
decoder_buffer_get_stream(const DecoderBuffer *buffer)
|
||||
{
|
||||
return *buffer->is;
|
||||
}
|
||||
|
||||
bool
|
||||
decoder_buffer_is_empty(const DecoderBuffer *buffer)
|
||||
{
|
||||
|
|
|
@ -52,6 +52,10 @@ decoder_buffer_new(Decoder *decoder, InputStream &is,
|
|||
void
|
||||
decoder_buffer_free(DecoderBuffer *buffer);
|
||||
|
||||
gcc_pure
|
||||
const InputStream &
|
||||
decoder_buffer_get_stream(const DecoderBuffer *buffer);
|
||||
|
||||
gcc_pure
|
||||
bool
|
||||
decoder_buffer_is_empty(const DecoderBuffer *buffer);
|
||||
|
|
Loading…
Reference in New Issue