Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] using output_test_stream to compare in the middle of a file
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2014-01-12 22:33:36


Lloyd <lloydkl.tech <at> gmail.com> writes:

>
> Hi,
> We need to test a function which reads a "record" from a binary file. We
> want to compare the buffer with the "record" in input file.We know the
> offset of the record in input file. How can we compare the
> output_test_stream with a certain offset (and length) of the file?
> or is there any alternative for this?

I do not think this class can help you with this. In general this class is
good for rather limited use case and should probably be impoved to something
similar to diff command.

Regards,
Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net