Sha256: 7f01ca6f639788a87a6fd78ef07faf5c26b5159212a5a12f2d2ab1464e231077

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

require 'ffi'

module FFI
  module MsgPack
    extend FFI::Library

    typedef :pointer, :FILE

    enum :msgpack_unpack_return, [
      :success, 2,
      :extra_bytes, 1,
      :continue, 0,
      :parse_error, -1
    ]

    callback :msgpack_packer_write, [:pointer, :pointer, :uint], :int

    enum :msgpack_object_type, [
      :nil,              0x01,
      :boolean,          0x02,
      :positive_integer, 0x03,
      :negative_integer, 0x04,
      :double,           0x05,
      :raw,              0x06,
      :array,            0x07,
      :map,              0x08
    ]

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-msgpack-0.1.1 lib/ffi/msgpack/types.rb
ffi-msgpack-0.1.0 lib/ffi/msgpack/types.rb