File: msgpack.rb

package info (click to toggle)
ruby-msgpack 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 868 kB
  • sloc: ansic: 4,030; ruby: 3,481; java: 1,738; sh: 45; makefile: 2
file content (87 lines) | stat: -rw-r--r-- 2,088 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

module MessagePack
  #
  # Serializes an object into an IO or String.
  #
  # @overload dump(obj, options={})
  #   @param obj [Object] object to be serialized
  #   @param options [Hash]
  #   @return [String] serialized data
  #
  # @overload dump(obj, io, options={})
  #   @param obj [Object] object to be serialized
  #   @param io [IO]
  #   @param options [Hash]
  #   @return [IO]
  #
  # See Packer#initialize for supported options.
  #
  def self.dump(obj)
  end

  #
  # Serializes an object into an IO or String. Alias of dump.
  #
  # @overload pack(obj, options={})
  #   @param obj [Object] object to be serialized
  #   @param options [Hash]
  #   @return [String] serialized data
  #
  # @overload pack(obj, io, options={})
  #   @param obj [Object] object to be serialized
  #   @param io [IO]
  #   @param options [Hash]
  #   @return [IO]
  #
  # See Packer#initialize for supported options.
  #
  def self.pack(obj)
  end

  #
  # Deserializes an object from an IO or String.
  #
  # @overload load(string, options={})
  #   @param string [String] data to deserialize
  #   @param options [Hash]
  #
  # @overload load(io, options={})
  #   @param io [IO]
  #   @param options [Hash]
  #
  # @return [Object] deserialized object
  #
  # See Unpacker#initialize for supported options.
  #
  def self.load(src, options={})
  end

  #
  # Deserializes an object from an IO or String. Alias of load.
  #
  # @overload unpack(string, options={})
  #   @param string [String] data to deserialize
  #   @param options [Hash]
  #
  # @overload unpack(io, options={})
  #   @param io [IO]
  #   @param options [Hash]
  #
  # @return [Object] deserialized object
  #
  # See Unpacker#initialize for supported options.
  #
  def self.unpack(src, options={})
  end

  #
  # An instance of Factory class. DefaultFactory is also used
  # by global pack/unpack methods such as MessagePack.dump/load,
  # Hash#to_msgpack, and other to_msgpack methods.
  #
  # Calling DefaultFactory.register_type lets you add an extension
  # type globally.
  #
  DefaultFactory = Factory.new
end