port line buffer from bambamc (C) to libmaus (C++)