Lines Matching refs:seqRead
222 Sequence<BYTE> seqRead( seqWrite.getLen() ); in testSimple() local
228 rInput->readBytes( seqRead , rInput->available() ); in testSimple()
229 ERROR_ASSERT( ! strcmp( (char *) seqWrite.getArray() , (char * )seqRead.getArray() ) , in testSimple()
240 rInput->readBytes( seqRead , seqWrite.getLen() ); in testSimple()
241 ERROR_ASSERT( ! strcmp( (char *) seqWrite.getArray() , (char * )seqRead.getArray() ) , in testSimple()
350 rInput->readBytes( seqRead , 4 ); in testSimple()
352 ERROR_ASSERT( 3 == seqRead.getArray()[0] , "rewrite didn't work" ); in testSimple()
353 ERROR_ASSERT( 2 == seqRead.getArray()[1] , "rewrite didn't work" ); in testSimple()
354 ERROR_ASSERT( 1 == seqRead.getArray()[2] , "rewrite didn't work" ); in testSimple()
355 ERROR_ASSERT( 0 == seqRead.getArray()[3] , "rewrite didn't work" ); in testSimple()
582 Sequence<BYTE> seqRead(10); in testSimple() local
592 rInput->readBytes( seqRead , 10 ); in testSimple()
593 ERROR_ASSERT( 9 == seqRead.getArray()[9] , "basic read/write failure" ); in testSimple()
604 rInput->readBytes( seqRead , 10 ); in testSimple()
605 ERROR_ASSERT( 10 == seqRead.getArray()[0] , "marking error" ); in testSimple()
613 rInput->readBytes( seqRead , 10 ); in testSimple()
614 ERROR_ASSERT( 20 == seqRead.getArray()[0] , "Inbetween mark failed!\n" ); in testSimple()
620 rInput->readBytes( seqRead , 10 ); in testSimple()
621 ERROR_ASSERT( 20 == seqRead.getArray()[0] , "Inbetween mark failed!\n" ); in testSimple()
630 …ERROR_ASSERT( 100 == rInput->readSomeBytes( seqRead , 100 ) , "wrong results using readSomeBytes" … in testSimple()
631 ERROR_ASSERT( 96 == rInput->readSomeBytes( seqRead , 1000) , "wrong results using readSomeBytes" ); in testSimple()