| Class | Thrift::BaseTransport |
| In: |
ruby/lib/thrift/transport/base_transport.rb
|
| Parent: | Object |
# File ruby/lib/thrift/transport/base_transport.rb, line 44
44: def read(sz)
45: raise NotImplementedError
46: end
# File ruby/lib/thrift/transport/base_transport.rb, line 48
48: def read_all(size)
49: buf = ''
50:
51: while (buf.length < size)
52: chunk = read(size - buf.length)
53: buf << chunk
54: end
55:
56: buf
57: end