encoding: In BinaryXmlEncoder, added getOffset().