streamlet-examples/streamlet-common.h
branchv_0
changeset 95 f2f2b81079a5
parent 75 ecbf6504915c
--- a/streamlet-examples/streamlet-common.h	Sat Dec 04 21:14:49 2021 +0100
+++ b/streamlet-examples/streamlet-common.h	Sat Apr 23 19:08:11 2022 +0200
@@ -75,6 +75,7 @@
 	}
 
 	void writeString(std::wstring s) {
+		// if the value contains a null byte 0x00, it will be trimmed (passing 0x00 through would break the protocol)
 		std::cout << convertor.to_bytes(s.c_str());
 		std::cout.put(SEPARATOR);
 		if (std::cout.bad()) throw std::runtime_error("Unable to write to sub-process.");