private bool FinishReadContentAsBinary() {
Debug.Assert( state == State.ReadContentAsBase64 || state == State.ReadContentAsBinHex );
byte[] bytes = new byte[256];
if ( state == State.ReadContentAsBase64 ) {
while ( reader.ReadContentAsBase64( bytes, 0, 256 ) > 0 ) ;
}
else {
while ( reader.ReadContentAsBinHex( bytes, 0, 256 ) > 0 ) ;
}
state = State.Interactive;
ProcessNamespaces();
// check eof
if ( reader.Depth == initialDepth ) {
state = State.EndOfFile;
SetEmptyNode();
return false;
}
return true;
}