Class: Util::ByteBuffer
- Inherits:
-
Object
- Object
- Util::ByteBuffer
- Defined in:
- lib/baykit/bayserver/util/byte_buffer.rb
Instance Attribute Summary collapse
-
#buf ⇒ Object
readonly
Returns the value of attribute buf.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#ofs ⇒ Object
readonly
Returns the value of attribute ofs.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
Instance Method Summary collapse
-
#initialize(buf, ofs = 0, len = buf.length) ⇒ ByteBuffer
constructor
A new instance of ByteBuffer.
Constructor Details
#initialize(buf, ofs = 0, len = buf.length) ⇒ ByteBuffer
Returns a new instance of ByteBuffer.
9 10 11 |
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 9 def initialize(buf, ofs=0, len=buf.length) end |
Instance Attribute Details
#buf ⇒ Object (readonly)
Returns the value of attribute buf.
4 5 6 |
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 4 def buf @buf end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
6 7 8 |
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 6 def length @length end |
#ofs ⇒ Object (readonly)
Returns the value of attribute ofs.
5 6 7 |
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 5 def ofs @ofs end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
7 8 9 |
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 7 def pos @pos end |