* Retrieve a single character in the string.
\param pos Position of character to retrieve.
*/
- _SQUID_INLINE_ char operator [](unsigned int pos);
+ _SQUID_INLINE_ char operator [](unsigned int pos) const;
_SQUID_INLINE_ int size() const;
_SQUID_INLINE_ char const * unsafeBuf() const;
assert(request_satisfaction_mode);
assert(adaptedBodySource != NULL);
- if (const size_t contentSize = adaptedBodySource->unsafeBuf().contentSize()) {
+ if (const size_t contentSize = adaptedBodySource->buf().contentSize()) {
BodyPipeCheckout bpc(*adaptedBodySource);
- const StoreIOBuffer ioBuf(&bpc.unsafeBuf, request_satisfaction_offset);
+ const StoreIOBuffer ioBuf(&bpc.buf, request_satisfaction_offset);
storeEntry()->write(ioBuf);
// assume can write everything
request_satisfaction_offset += contentSize;
- bpc.unsafeBuf.consume(contentSize);
+ bpc.buf.consume(contentSize);
bpc.checkIn();
}