Class BSON::ByteBuffer
In: lib/bson/byte_buffer.rb
Parent: Object

Methods

==   append!   clear   dump   get   get   get_double   get_int   get_long   length   more?   new   order=   position   position=   prepend!   put   put_array   put_binary   put_double   put_int   put_long   rewind   serialize_cstr   size   to_a   to_s   to_utf8_binary   to_utf8_binary   unpack  

Constants

NULL_BYTE = "\0".force_encoding('binary').freeze
UTF8_ENCODING = Encoding.find('utf-8')
BINARY_ENCODING = Encoding.find('binary')
NULL_BYTE = "\0"

Attributes

order  [R] 

Public Class methods

Public Instance methods

Appends a second ByteBuffer object, buffer, to the current buffer.

length()

Alias for size

endianness should be :little_endian or :big_endian. Default is :little_endian

Prepends a second ByteBuffer object, buffer, to the current buffer.

[Validate]