Class: Thrift::BaseTransport
- Inherits:
-
Object
- Object
- Thrift::BaseTransport
show all
- Defined in:
- lib/thrift/transport/base_transport.rb
Instance Method Summary
collapse
Instance Method Details
#close ⇒ Object
42
|
# File 'lib/thrift/transport/base_transport.rb', line 42
def close; end
|
#flush ⇒ Object
62
|
# File 'lib/thrift/transport/base_transport.rb', line 62
def flush; end
|
#open ⇒ Object
40
|
# File 'lib/thrift/transport/base_transport.rb', line 40
def open; end
|
#open? ⇒ Boolean
38
|
# File 'lib/thrift/transport/base_transport.rb', line 38
def open?; end
|
#read(sz) ⇒ Object
44
45
46
|
# File 'lib/thrift/transport/base_transport.rb', line 44
def read(sz)
raise NotImplementedError
end
|
#read_all(size) ⇒ Object
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/thrift/transport/base_transport.rb', line 48
def read_all(size)
buf = ''
while (buf.length < size)
chunk = read(size - buf.length)
buf << chunk
end
buf
end
|
#write(buf) ⇒ Object
Also known as:
<<
59
|
# File 'lib/thrift/transport/base_transport.rb', line 59
def write(buf); end
|