Class | Thrift::BaseTransport |
In: |
lib/thrift/transport/base_transport.rb
lib/thrift/transport/base_transport.rb |
Parent: | Object |
# File lib/thrift/transport/base_transport.rb, line 44 44: def read(sz) 45: raise NotImplementedError 46: end
# File lib/thrift/transport/base_transport.rb, line 44 44: def read(sz) 45: raise NotImplementedError 46: end
# File 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