I believe that Dean is saying that in order to isolote the sequence of bytes just parsed, you need to keep a "previous_offset" variable such that the sequence is bytes[ previous_offset .. (getSrcOffset() - 1) ].
-ted > "Dean Roddey" <[EMAIL PROTECTED]> writes: > > > Keep in mind that its getting you the offset just past the *end* of > > the thing it just handed you. So you have to keep a previous offset > > around in order to get the data from there to the new end minus one > > byte, which will get you the content of the thing it just handed > > you. > > Hey Dean, > > Maybe I'm not understanding you. Are you saying that getSrcOffset() is > returning the difference in bytes from the previous time it was > invoked? > > If so, that's not the behavior that I'm observing: > > Found element contributors at 70 offset > Found element person at 96 offset > Found element name at 107 offset > Found element email at 136 offset > Found element person at 201 offset > Found element name at 212 offset > Found element email at 241 offset > Found element person at 310 offset > Found element name at 321 offset > Found element email at 357 offset > > For me I'm getting the offset from the beginning of the file or > buffer. I'm only looking at small files, so maybe this is only a > single bufferful and that's why it works this way?? > > Thanks, > jas. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
