lib/museek_bindings/bin_utils.rb
# Extract a string from +str+.
#   Museek stores string as 4-byte length plus data.
#
# @param str [String]
#
# @return [Array] array of two elements: result and the rest of +str+.
#
# @since 0.0.1
# @api private
Extract a string from +str+.
Museek stores string as 4-byte length plus data.
Extract a string from + str + . Museek stores string as 4 - byte length plus data .
def unpack_string(str)
    length, message = unpack_uint32(str)
    [message[0...length], message[length..-1]]
  end
def unpack_string ( str ) length , message = unpack_uint32 ( str ) [ message [ 0 ... length ] , message [ length .. - 1 ] ] end
Extract a string from +str+.
Extract a string from + str + .
array of two elements: result and the rest of +str+.
array of two elements : result and the rest of + str + .
Array
str
<not_specific>
<not_specific>
None
since
None
api
None