src/NullByteHandler.h
branchv_0
changeset 23 b717a552e63f
parent 15 638f581903d0
child 24 d698d34baf9b
equal deleted inserted replaced
22:78b8abedb7f0 23:b717a552e63f
    49 	void startRelation(string_t name, std::vector<AttributeMetadata> attributes) override {
    49 	void startRelation(string_t name, std::vector<AttributeMetadata> attributes) override {
    50 
    50 
    51 	}
    51 	}
    52 
    52 
    53 	void attribute(const string_t& value) override {
    53 	void attribute(const string_t& value) override {
    54 		output << convertor.to_bytes(value).c_str();
    54 		const std::string octets = convertor.to_bytes(value);
       
    55 		for (char ch : octets) output.put(ch ? ch : '@');
    55 		output.put(0);
    56 		output.put(0);
    56 	}
    57 	}
    57 
    58 
    58 	void endOfPipe() {
    59 	void endOfPipe() {
    59 		output.flush();
    60 		output.flush();