Class: Util::ByteBuffer

Inherits:
Object
  • Object
show all
Defined in:
lib/baykit/bayserver/util/byte_buffer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bufObject (readonly)

Returns the value of attribute buf.



4
5
6
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 4

def buf
  @buf
end

#lengthObject (readonly)

Returns the value of attribute length.



6
7
8
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 6

def length
  @length
end

#ofsObject (readonly)

Returns the value of attribute ofs.



5
6
7
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 5

def ofs
  @ofs
end

#posObject (readonly)

Returns the value of attribute pos.



7
8
9
# File 'lib/baykit/bayserver/util/byte_buffer.rb', line 7

def pos
  @pos
end