Method: CTypes::Type#unpack_one

Defined in:
lib/ctypes/type.rb

#unpack_one(buf, endian: default_endian) ⇒ Array(Object, ::String)

convert a String containing the binary represention of a c type into the equivalent ruby type

Parameters:

  • bytes that make up the type

  • (defaults to: default_endian)

    endian of data within buf

Returns:

  • decoded type, and remaining bytes

Raises:

See Also:



68
69
70
# File 'lib/ctypes/type.rb', line 68

def unpack_one(buf, endian: default_endian)
  raise NotImplementedError
end