Class: FFI::MsgPack::MsgRaw
- Inherits:
-
Struct
- Object
- Struct
- FFI::MsgPack::MsgRaw
- Defined in:
- lib/ffi/msgpack/msg_raw.rb
Instance Method Summary collapse
-
#length ⇒ Integer
The length of the raw data.
-
#raw ⇒ FFI::Pointer
The pointer to the raw data.
-
#to_s ⇒ String
The raw data.
Instance Method Details
#length ⇒ Integer
The length of the raw data.
16 17 18 |
# File 'lib/ffi/msgpack/msg_raw.rb', line 16 def length self[:size] end |
#raw ⇒ FFI::Pointer
The pointer to the raw data.
26 27 28 |
# File 'lib/ffi/msgpack/msg_raw.rb', line 26 def raw self[:ptr] end |
#to_s ⇒ String
The raw data.
36 37 38 |
# File 'lib/ffi/msgpack/msg_raw.rb', line 36 def to_s self[:ptr].get_bytes(0,self[:size]) end |