51 class ptrinbuf :
public std::streambuf
53 ptrinbuf(
const ptrinbuf&);
54 ptrinbuf& operator=(
const ptrinbuf&);
63 len = std::strlen(ptr);
79 return traits_type::to_int_type(*
gptr());
90 switch (
static_cast<int>(
way)) {
95 setg(ptr, ptr+off, ptr+len);
110 : std::istream(0),
buf(ptr, len) {
#define TRACE_CTOR(cls, args)
ptristream(char *ptr, std::size_t len=0)