Sha256: 7e9a5767eefd277c3aa83efada4963e42fb1083facc0295cc33250aada340459

Contents?: true

Size: 592 Bytes

Versions: 6

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,              0x00,
      :boolean,          0x01,
      :positive_integer, 0x02,
      :negative_integer, 0x03,
      :double,           0x04,
      :raw,              0x05,
      :array,            0x06,
      :map,              0x07
    ]

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffi-msgpack-0.2.2 lib/ffi/msgpack/types.rb
ffi-msgpack-0.2.1 lib/ffi/msgpack/types.rb
ffi-msgpack-0.2.0 lib/ffi/msgpack/types.rb
ffi-msgpack-0.1.4 lib/ffi/msgpack/types.rb
ffi-msgpack-0.1.3 lib/ffi/msgpack/types.rb
ffi-msgpack-0.1.2 lib/ffi/msgpack/types.rb