The abstract ancestor module of both ReaderBufferImpl and WriterBufferImpl. It defines the common interface for both submodules.

Methods
Attributes
[R] content exposes the content of the buffer
Public Instance methods
==( buffer )

Compares the contents of the two buffers.

    # File lib/net/ssh/util/buffer.rb, line 40
40:         def ==( buffer )
41:           to_s == buffer.to_s
42:         end
clear!()

Resets the buffer, making it empty.

    # File lib/net/ssh/util/buffer.rb, line 45
45:         def clear!
46:           @content = ""
47:         end
length()

the length of the buffer‘s content.

    # File lib/net/ssh/util/buffer.rb, line 30
30:         def length
31:           @content.length
32:         end
to_s()

returns a copy of the buffer‘s content.

    # File lib/net/ssh/util/buffer.rb, line 35
35:         def to_s
36:           ( @content || "" ).dup
37:         end