lib/bolt/pack_stream.rb
# Serializes the arguments according to the PackStream format. If multiple arguments are passed the result
# is the concatentation of the serialization of the individual values.
#
# To be serializable a value must be an Integer, Float, String, Symbol (serialized as string), Array, Hash
# or include the {Structure} module
#
# @raise [ArgumentError] if the argument contains non serializable data
# @raise [RangeError] if the argument contains out of range data (such as integers >= 2**64)
# @return [String] - A packstream encoded string
Serializes the arguments according to the PackStream format. If multiple arguments are passed the result
is the concatentation of the serialization of the individual values.

To be serializable a value must be an Integer, Float, String, Symbol (serialized as string), Array, Hash
or include the {Structure} module
Serializes the arguments according to the PackStream format . If multiple arguments are passed the result is the concatentation of the serialization of the individual values . To be serializable a value must be an Integer Float String Symbol ( serialized as string ) Array Hash or include the { Structure } module
def pack(*values)
        values.inject("".dup.force_encoding('BINARY')) do |buffer, value|
          pack_internal(buffer, value)
        end
      end
def pack ( * values ) values . inject ( "" . dup . force_encoding ( 'BINARY' ) ) do | buffer , value | pack_internal ( buffer , value ) end end
Serializes the arguments according to the PackStream format.
Serializes the arguments according to the PackStream format .
A packstream encoded string
A packstream encoded string
String
[ArgumentError] if the argument contains non serializable data
[ ArgumentError ] if the argument contains non serializable data
[RangeError] if the argument contains out of range data (such as integers >= 2**64)
[ RangeError ] if the argument contains out of range data ( such as integers > = 2 ** 64 )
values
<not_specific>