Class Thrift::BaseTransport
In: lib/thrift/transport/base_transport.rb
lib/thrift/transport/base_transport.rb
Parent: Object

Methods

<<   <<   close   close   flush   flush   open   open   open?   open?   read   read   read_all   read_all   write   write  

Public Instance methods

<<(buf)

Alias for write

<<(buf)

Alias for write

[Source]

    # File lib/thrift/transport/base_transport.rb, line 42
42:     def close; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 42
42:     def close; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 62
62:     def flush; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 62
62:     def flush; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 40
40:     def open; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 40
40:     def open; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 38
38:     def open?; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 38
38:     def open?; end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 44
44:     def read(sz)
45:       raise NotImplementedError
46:     end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 44
44:     def read(sz)
45:       raise NotImplementedError
46:     end

[Source]

    # 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

[Source]

    # 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

[Source]

    # File lib/thrift/transport/base_transport.rb, line 59
59:     def write(buf); end

[Source]

    # File lib/thrift/transport/base_transport.rb, line 59
59:     def write(buf); end

[Validate]