Class: Thrift::Transport
- Inherits:
-
Object
show all
- Defined in:
- lib/thrift/transport.rb
Overview
Transport is basically an abstract class, but isn’t raising NotImplementedError TODO: Think about if this is the right thing - Kevin Clark - 3/27/08
Instance Method Summary
collapse
Instance Method Details
#close ⇒ Object
36
|
# File 'lib/thrift/transport.rb', line 36
def close; end
|
#flush ⇒ Object
55
|
# File 'lib/thrift/transport.rb', line 55
def flush; end
|
#open ⇒ Object
34
|
# File 'lib/thrift/transport.rb', line 34
def open; end
|
#open? ⇒ Boolean
30
|
# File 'lib/thrift/transport.rb', line 30
def open?; end
|
#read(sz) ⇒ Object
38
|
# File 'lib/thrift/transport.rb', line 38
def read(sz); end
|
#read_all(size) ⇒ Object
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/thrift/transport.rb', line 40
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:
<<
52
|
# File 'lib/thrift/transport.rb', line 52
def write(buf); end
|