lib/czmq-ffi-gen/czmq/ffi/zmsg.rb in czmq-ffi-gen-0.16.1 vs lib/czmq-ffi-gen/czmq/ffi/zmsg.rb in czmq-ffi-gen-1.0.0

- old
+ new

@@ -452,15 +452,31 @@ result end # Send message to zsys log sink (may be stdout, or system facility as # configured by zsys_set_logstream). + # Long messages are truncated. # # @return [void] def print() raise DestroyedError unless @ptr self_p = @ptr result = ::CZMQ::FFI.zmsg_print(self_p) + result + end + + # Send message to zsys log sink (may be stdout, or system facility as + # configured by zsys_set_logstream). + # Message length is specified; no truncation unless length is zero. + # Backwards compatible with zframe_print when length is zero. + # + # @param size [Integer, #to_int, #to_i] + # @return [void] + def print_n(size) + raise DestroyedError unless @ptr + self_p = @ptr + size = Integer(size) + result = ::CZMQ::FFI.zmsg_print_n(self_p, size) result end # Return true if the two messages have the same number of frames and each # frame in the first message is identical to the corresponding frame in the