comparison win64-msvc/include/kj/string.h @ 63:0f2d93caa50c

Update Win64 capnp builds to v0.6
author Chris Cannam
date Mon, 22 May 2017 18:56:49 +0100
parents d93140aac40b
children
comparison
equal deleted inserted replaced
62:0994c39f1e94 63:0f2d93caa50c
168 inline ArrayPtr<const char> asArray() const; 168 inline ArrayPtr<const char> asArray() const;
169 inline ArrayPtr<byte> asBytes() { return asArray().asBytes(); } 169 inline ArrayPtr<byte> asBytes() { return asArray().asBytes(); }
170 inline ArrayPtr<const byte> asBytes() const { return asArray().asBytes(); } 170 inline ArrayPtr<const byte> asBytes() const { return asArray().asBytes(); }
171 // Result does not include NUL terminator. 171 // Result does not include NUL terminator.
172 172
173 inline Array<char> releaseArray() { return kj::mv(content); }
174 // Disowns the backing array (which includes the NUL terminator) and returns it. The String value
175 // is clobbered (as if moved away).
176
173 inline const char* cStr() const; 177 inline const char* cStr() const;
174 178
175 inline size_t size() const; 179 inline size_t size() const;
176 // Result does not include NUL terminator. 180 // Result does not include NUL terminator.
177 181