:- module bit_buffer.
:- interface.
:- import_module bitmap.
:- import_module stream.
:- include_module (bit_buffer.read).
:- include_module (bit_buffer.write).
:- type error_state
	--->	error_state .
:- type error_stream
	--->	error_stream .
:- type error_stream_error
	--->	error_stream_error .
:- instance (stream.bulk_reader(bit_buffer.error_stream, bitmap.byte_index, bitmap.bitmap, bit_buffer.error_state, bit_buffer.error_stream_error)).
:- instance (stream.error(bit_buffer.error_stream_error)).
:- instance (stream.input(bit_buffer.error_stream, bit_buffer.error_state)).
:- instance (stream.output(bit_buffer.error_stream, bit_buffer.error_state)).
:- instance (stream.stream(bit_buffer.error_stream, bit_buffer.error_state)).
:- instance (stream.writer(bit_buffer.error_stream, bitmap.slice, bit_buffer.error_state)).
:- implementation.
:- pragma foreign_import_module("C", bit_buffer).
:- pragma foreign_import_module("C", bit_buffer).
