czmq-ffi-gen 0.9.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS +1 -0
  3. data/CHANGES.md +88 -0
  4. data/Gemfile +2 -0
  5. data/LICENSE +14 -0
  6. data/README.md +112 -0
  7. data/lib/czmq-ffi-gen.rb +7 -0
  8. data/lib/czmq-ffi-gen/czmq/ffi.rb +1210 -0
  9. data/lib/czmq-ffi-gen/czmq/ffi/version.rb +15 -0
  10. data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +186 -0
  11. data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +286 -0
  12. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +307 -0
  13. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +222 -0
  14. data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +388 -0
  15. data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +140 -0
  16. data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +442 -0
  17. data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +156 -0
  18. data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +283 -0
  19. data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +194 -0
  20. data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +353 -0
  21. data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +359 -0
  22. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +416 -0
  23. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +659 -0
  24. data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +189 -0
  25. data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +365 -0
  26. data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +478 -0
  27. data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +396 -0
  28. data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +515 -0
  29. data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +194 -0
  30. data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +294 -0
  31. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +3479 -0
  32. data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +203 -0
  33. data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +203 -0
  34. data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +221 -0
  35. data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +227 -0
  36. data/lib/czmq-ffi-gen/errors.rb +12 -0
  37. data/lib/czmq-ffi-gen/gem_version.rb +5 -0
  38. data/lib/czmq-ffi-gen/legacy.rb +16 -0
  39. data/lib/czmq-ffi-gen/libzmq.rb +18 -0
  40. data/lib/czmq-ffi-gen/signals.rb +27 -0
  41. data/lib/czmq-ffi-gen/vendor.rb +5 -0
  42. data/lib/czmq-ffi-gen/versions.rb +19 -0
  43. data/vendor/local/bin/inproc_lat.exe +0 -0
  44. data/vendor/local/bin/inproc_thr.exe +0 -0
  45. data/vendor/local/bin/libczmq.dll +0 -0
  46. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  47. data/vendor/local/bin/libstdc++-6.dll +0 -0
  48. data/vendor/local/bin/libzmq.dll +0 -0
  49. data/vendor/local/bin/local_lat.exe +0 -0
  50. data/vendor/local/bin/local_thr.exe +0 -0
  51. data/vendor/local/bin/remote_lat.exe +0 -0
  52. data/vendor/local/bin/remote_thr.exe +0 -0
  53. data/vendor/local/include/czmq.h +31 -0
  54. data/vendor/local/include/czmq_library.h +199 -0
  55. data/vendor/local/include/czmq_prelude.h +641 -0
  56. data/vendor/local/include/readme.txt +83 -0
  57. data/vendor/local/include/sha1.h +76 -0
  58. data/vendor/local/include/sha1.inc_c +335 -0
  59. data/vendor/local/include/slre.h +92 -0
  60. data/vendor/local/include/slre.inc_c +660 -0
  61. data/vendor/local/include/zactor.h +76 -0
  62. data/vendor/local/include/zarmour.h +114 -0
  63. data/vendor/local/include/zauth.h +100 -0
  64. data/vendor/local/include/zauth_v2.h +88 -0
  65. data/vendor/local/include/zbeacon.h +86 -0
  66. data/vendor/local/include/zbeacon_v2.h +75 -0
  67. data/vendor/local/include/zcert.h +136 -0
  68. data/vendor/local/include/zcertstore.h +100 -0
  69. data/vendor/local/include/zchunk.h +163 -0
  70. data/vendor/local/include/zclock.h +73 -0
  71. data/vendor/local/include/zconfig.h +185 -0
  72. data/vendor/local/include/zctx.h +107 -0
  73. data/vendor/local/include/zdigest.h +65 -0
  74. data/vendor/local/include/zdir.h +149 -0
  75. data/vendor/local/include/zdir_patch.h +82 -0
  76. data/vendor/local/include/zfile.h +177 -0
  77. data/vendor/local/include/zframe.h +176 -0
  78. data/vendor/local/include/zgossip.h +95 -0
  79. data/vendor/local/include/zgossip_engine.inc +927 -0
  80. data/vendor/local/include/zgossip_msg.h +129 -0
  81. data/vendor/local/include/zhash.h +195 -0
  82. data/vendor/local/include/zhash_primes.inc +329 -0
  83. data/vendor/local/include/zhashx.h +298 -0
  84. data/vendor/local/include/ziflist.h +77 -0
  85. data/vendor/local/include/zlist.h +158 -0
  86. data/vendor/local/include/zlistx.h +205 -0
  87. data/vendor/local/include/zloop.h +168 -0
  88. data/vendor/local/include/zmonitor.h +73 -0
  89. data/vendor/local/include/zmonitor_v2.h +56 -0
  90. data/vendor/local/include/zmq.h +617 -0
  91. data/vendor/local/include/zmq_utils.h +48 -0
  92. data/vendor/local/include/zmsg.h +280 -0
  93. data/vendor/local/include/zmutex.h +55 -0
  94. data/vendor/local/include/zpoller.h +92 -0
  95. data/vendor/local/include/zproc.h +168 -0
  96. data/vendor/local/include/zproxy.h +111 -0
  97. data/vendor/local/include/zproxy_v2.h +62 -0
  98. data/vendor/local/include/zrex.h +82 -0
  99. data/vendor/local/include/zsock.h +912 -0
  100. data/vendor/local/include/zsock_option.inc +4126 -0
  101. data/vendor/local/include/zsocket.h +110 -0
  102. data/vendor/local/include/zsockopt.h +256 -0
  103. data/vendor/local/include/zstr.h +110 -0
  104. data/vendor/local/include/zsys.h +386 -0
  105. data/vendor/local/include/zthread.h +50 -0
  106. data/vendor/local/include/ztimerset.h +90 -0
  107. data/vendor/local/include/ztrie.h +106 -0
  108. data/vendor/local/include/zuuid.h +96 -0
  109. data/vendor/local/lib/libczmq.dll.a +0 -0
  110. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  111. data/vendor/local/lib/libzmq-static.a +0 -0
  112. data/vendor/local/lib/pkgconfig/libczmq.pc +23 -0
  113. data/vendor/local/lib/pkgconfig/libzmq.pc +11 -0
  114. data/vendor/local/share/zmq/AUTHORS.txt +147 -0
  115. data/vendor/local/share/zmq/COPYING.LESSER.txt +181 -0
  116. data/vendor/local/share/zmq/COPYING.txt +674 -0
  117. data/vendor/local/share/zmq/NEWS.txt +978 -0
  118. metadata +230 -0
@@ -0,0 +1,283 @@
1
+ ################################################################################
2
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3
+ # Read the zproject/README.md for information about making permanent changes. #
4
+ ################################################################################
5
+
6
+ module CZMQ
7
+ module FFI
8
+
9
+ # work with file-system directories
10
+ # @note This class is 100% generated using zproject.
11
+ class Zdir
12
+ # Raised when one tries to use an instance of {Zdir} after
13
+ # the internal pointer to the native object has been nullified.
14
+ class DestroyedError < RuntimeError; end
15
+
16
+ # Boilerplate for self pointer, initializer, and finalizer
17
+ class << self
18
+ alias :__new :new
19
+ end
20
+ # Attaches the pointer _ptr_ to this instance and defines a finalizer for
21
+ # it if necessary.
22
+ # @param ptr [::FFI::Pointer]
23
+ # @param finalize [Boolean]
24
+ def initialize(ptr, finalize = true)
25
+ @ptr = ptr
26
+ if @ptr.null?
27
+ @ptr = nil # Remove null pointers so we don't have to test for them.
28
+ elsif finalize
29
+ @finalizer = self.class.create_finalizer_for @ptr
30
+ ObjectSpace.define_finalizer self, @finalizer
31
+ end
32
+ end
33
+ # @param ptr [::FFI::Pointer]
34
+ # @return [Proc]
35
+ def self.create_finalizer_for(ptr)
36
+ Proc.new do
37
+ ptr_ptr = ::FFI::MemoryPointer.new :pointer
38
+ ptr_ptr.write_pointer ptr
39
+ ::CZMQ::FFI.zdir_destroy ptr_ptr
40
+ end
41
+ end
42
+ # @return [Boolean]
43
+ def null?
44
+ !@ptr or @ptr.null?
45
+ end
46
+ # Return internal pointer
47
+ # @return [::FFI::Pointer]
48
+ def __ptr
49
+ raise DestroyedError unless @ptr
50
+ @ptr
51
+ end
52
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
53
+ alias_method :to_ptr, :__ptr
54
+ # Nullify internal pointer and return pointer pointer.
55
+ # @note This detaches the current instance from the native object
56
+ # and thus makes it unusable.
57
+ # @return [::FFI::MemoryPointer] the pointer pointing to a pointer
58
+ # pointing to the native object
59
+ def __ptr_give_ref
60
+ raise DestroyedError unless @ptr
61
+ ptr_ptr = ::FFI::MemoryPointer.new :pointer
62
+ ptr_ptr.write_pointer @ptr
63
+ __undef_finalizer if @finalizer
64
+ @ptr = nil
65
+ ptr_ptr
66
+ end
67
+ # Undefines the finalizer for this object.
68
+ # @note Only use this if you need to and can guarantee that the native
69
+ # object will be freed by other means.
70
+ # @return [void]
71
+ def __undef_finalizer
72
+ ObjectSpace.undefine_finalizer self
73
+ @finalizer = nil
74
+ end
75
+
76
+ # Create a new directory item that loads in the full tree of the specified
77
+ # path, optionally located under some parent path. If parent is "-", then
78
+ # loads only the top-level directory, and does not use parent as a path.
79
+ # @param path [String, #to_s, nil]
80
+ # @param parent [String, #to_s, nil]
81
+ # @return [CZMQ::Zdir]
82
+ def self.new(path, parent)
83
+ ptr = ::CZMQ::FFI.zdir_new(path, parent)
84
+ __new ptr
85
+ end
86
+
87
+ # Destroy a directory tree and all children it contains.
88
+ #
89
+ # @return [void]
90
+ def destroy()
91
+ return unless @ptr
92
+ self_p = __ptr_give_ref
93
+ result = ::CZMQ::FFI.zdir_destroy(self_p)
94
+ result
95
+ end
96
+
97
+ # Return directory path
98
+ #
99
+ # @return [String]
100
+ def path()
101
+ raise DestroyedError unless @ptr
102
+ self_p = @ptr
103
+ result = ::CZMQ::FFI.zdir_path(self_p)
104
+ result
105
+ end
106
+
107
+ # Return last modification time for directory.
108
+ #
109
+ # @return [::FFI::Pointer]
110
+ def modified()
111
+ raise DestroyedError unless @ptr
112
+ self_p = @ptr
113
+ result = ::CZMQ::FFI.zdir_modified(self_p)
114
+ result
115
+ end
116
+
117
+ # Return total hierarchy size, in bytes of data contained in all files
118
+ # in the directory tree.
119
+ #
120
+ # @return [::FFI::Pointer]
121
+ def cursize()
122
+ raise DestroyedError unless @ptr
123
+ self_p = @ptr
124
+ result = ::CZMQ::FFI.zdir_cursize(self_p)
125
+ result
126
+ end
127
+
128
+ # Return directory count
129
+ #
130
+ # @return [Integer]
131
+ def count()
132
+ raise DestroyedError unless @ptr
133
+ self_p = @ptr
134
+ result = ::CZMQ::FFI.zdir_count(self_p)
135
+ result
136
+ end
137
+
138
+ # Returns a sorted list of zfile objects; Each entry in the list is a pointer
139
+ # to a zfile_t item already allocated in the zdir tree. Do not destroy the
140
+ # original zdir tree until you are done with this list.
141
+ #
142
+ # @return [Zlist]
143
+ def list()
144
+ raise DestroyedError unless @ptr
145
+ self_p = @ptr
146
+ result = ::CZMQ::FFI.zdir_list(self_p)
147
+ result = Zlist.__new result, true
148
+ result
149
+ end
150
+
151
+ # Remove directory, optionally including all files that it contains, at
152
+ # all levels. If force is false, will only remove the directory if empty.
153
+ # If force is true, will remove all files and all subdirectories.
154
+ #
155
+ # @param force [Boolean]
156
+ # @return [void]
157
+ def remove(force)
158
+ raise DestroyedError unless @ptr
159
+ self_p = @ptr
160
+ force = !(0==force||!force) # boolean
161
+ result = ::CZMQ::FFI.zdir_remove(self_p, force)
162
+ result
163
+ end
164
+
165
+ # Calculate differences between two versions of a directory tree.
166
+ # Returns a list of zdir_patch_t patches. Either older or newer may
167
+ # be null, indicating the directory is empty/absent. If alias is set,
168
+ # generates virtual filename (minus path, plus alias).
169
+ #
170
+ # @param older [Zdir, #__ptr]
171
+ # @param newer [Zdir, #__ptr]
172
+ # @param alias_ [String, #to_s, nil]
173
+ # @return [Zlist]
174
+ def self.diff(older, newer, alias_)
175
+ older = older.__ptr if older
176
+ newer = newer.__ptr if newer
177
+ result = ::CZMQ::FFI.zdir_diff(older, newer, alias_)
178
+ result = Zlist.__new result, true
179
+ result
180
+ end
181
+
182
+ # Return full contents of directory as a zdir_patch list.
183
+ #
184
+ # @param alias_ [String, #to_s, nil]
185
+ # @return [Zlist]
186
+ def resync(alias_)
187
+ raise DestroyedError unless @ptr
188
+ self_p = @ptr
189
+ result = ::CZMQ::FFI.zdir_resync(self_p, alias_)
190
+ result = Zlist.__new result, true
191
+ result
192
+ end
193
+
194
+ # Load directory cache; returns a hash table containing the SHA-1 digests
195
+ # of every file in the tree. The cache is saved between runs in .cache.
196
+ #
197
+ # @return [Zhash]
198
+ def cache()
199
+ raise DestroyedError unless @ptr
200
+ self_p = @ptr
201
+ result = ::CZMQ::FFI.zdir_cache(self_p)
202
+ result = Zhash.__new result, true
203
+ result
204
+ end
205
+
206
+ # Print contents of directory to open stream
207
+ #
208
+ # @param file [::FFI::Pointer, #to_ptr]
209
+ # @param indent [Integer, #to_int, #to_i]
210
+ # @return [void]
211
+ def fprint(file, indent)
212
+ raise DestroyedError unless @ptr
213
+ self_p = @ptr
214
+ indent = Integer(indent)
215
+ result = ::CZMQ::FFI.zdir_fprint(self_p, file, indent)
216
+ result
217
+ end
218
+
219
+ # Print contents of directory to stdout
220
+ #
221
+ # @param indent [Integer, #to_int, #to_i]
222
+ # @return [void]
223
+ def print(indent)
224
+ raise DestroyedError unless @ptr
225
+ self_p = @ptr
226
+ indent = Integer(indent)
227
+ result = ::CZMQ::FFI.zdir_print(self_p, indent)
228
+ result
229
+ end
230
+
231
+ # Create a new zdir_watch actor instance:
232
+ #
233
+ # zactor_t *watch = zactor_new (zdir_watch, NULL);
234
+ #
235
+ # Destroy zdir_watch instance:
236
+ #
237
+ # zactor_destroy (&watch);
238
+ #
239
+ # Enable verbose logging of commands and activity:
240
+ #
241
+ # zstr_send (watch, "VERBOSE");
242
+ #
243
+ # Subscribe to changes to a directory path:
244
+ #
245
+ # zsock_send (watch, "ss", "SUBSCRIBE", "directory_path");
246
+ #
247
+ # Unsubscribe from changes to a directory path:
248
+ #
249
+ # zsock_send (watch, "ss", "UNSUBSCRIBE", "directory_path");
250
+ #
251
+ # Receive directory changes:
252
+ # zsock_recv (watch, "sp", &path, &patches);
253
+ #
254
+ # // Delete the received data.
255
+ # free (path);
256
+ # zlist_destroy (&patches);
257
+ #
258
+ # @param pipe [Zsock, #__ptr]
259
+ # @param unused [::FFI::Pointer, #to_ptr]
260
+ # @return [void]
261
+ def self.watch(pipe, unused)
262
+ pipe = pipe.__ptr if pipe
263
+ result = ::CZMQ::FFI.zdir_watch(pipe, unused)
264
+ result
265
+ end
266
+
267
+ # Self test of this class.
268
+ #
269
+ # @param verbose [Boolean]
270
+ # @return [void]
271
+ def self.test(verbose)
272
+ verbose = !(0==verbose||!verbose) # boolean
273
+ result = ::CZMQ::FFI.zdir_test(verbose)
274
+ result
275
+ end
276
+ end
277
+ end
278
+ end
279
+
280
+ ################################################################################
281
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
282
+ # Read the zproject/README.md for information about making permanent changes. #
283
+ ################################################################################
@@ -0,0 +1,194 @@
1
+ ################################################################################
2
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3
+ # Read the zproject/README.md for information about making permanent changes. #
4
+ ################################################################################
5
+
6
+ module CZMQ
7
+ module FFI
8
+
9
+ # work with directory patches
10
+ # @note This class is 100% generated using zproject.
11
+ class ZdirPatch
12
+ # Creates a new file
13
+ CREATE = 1
14
+
15
+ # Delete a file
16
+ DELETE = 2
17
+
18
+ # Raised when one tries to use an instance of {ZdirPatch} after
19
+ # the internal pointer to the native object has been nullified.
20
+ class DestroyedError < RuntimeError; end
21
+
22
+ # Boilerplate for self pointer, initializer, and finalizer
23
+ class << self
24
+ alias :__new :new
25
+ end
26
+ # Attaches the pointer _ptr_ to this instance and defines a finalizer for
27
+ # it if necessary.
28
+ # @param ptr [::FFI::Pointer]
29
+ # @param finalize [Boolean]
30
+ def initialize(ptr, finalize = true)
31
+ @ptr = ptr
32
+ if @ptr.null?
33
+ @ptr = nil # Remove null pointers so we don't have to test for them.
34
+ elsif finalize
35
+ @finalizer = self.class.create_finalizer_for @ptr
36
+ ObjectSpace.define_finalizer self, @finalizer
37
+ end
38
+ end
39
+ # @param ptr [::FFI::Pointer]
40
+ # @return [Proc]
41
+ def self.create_finalizer_for(ptr)
42
+ Proc.new do
43
+ ptr_ptr = ::FFI::MemoryPointer.new :pointer
44
+ ptr_ptr.write_pointer ptr
45
+ ::CZMQ::FFI.zdir_patch_destroy ptr_ptr
46
+ end
47
+ end
48
+ # @return [Boolean]
49
+ def null?
50
+ !@ptr or @ptr.null?
51
+ end
52
+ # Return internal pointer
53
+ # @return [::FFI::Pointer]
54
+ def __ptr
55
+ raise DestroyedError unless @ptr
56
+ @ptr
57
+ end
58
+ # So external Libraries can just pass the Object to a FFI function which expects a :pointer
59
+ alias_method :to_ptr, :__ptr
60
+ # Nullify internal pointer and return pointer pointer.
61
+ # @note This detaches the current instance from the native object
62
+ # and thus makes it unusable.
63
+ # @return [::FFI::MemoryPointer] the pointer pointing to a pointer
64
+ # pointing to the native object
65
+ def __ptr_give_ref
66
+ raise DestroyedError unless @ptr
67
+ ptr_ptr = ::FFI::MemoryPointer.new :pointer
68
+ ptr_ptr.write_pointer @ptr
69
+ __undef_finalizer if @finalizer
70
+ @ptr = nil
71
+ ptr_ptr
72
+ end
73
+ # Undefines the finalizer for this object.
74
+ # @note Only use this if you need to and can guarantee that the native
75
+ # object will be freed by other means.
76
+ # @return [void]
77
+ def __undef_finalizer
78
+ ObjectSpace.undefine_finalizer self
79
+ @finalizer = nil
80
+ end
81
+
82
+ # Create new patch
83
+ # @param path [String, #to_s, nil]
84
+ # @param file [Zfile, #__ptr]
85
+ # @param op [Integer, #to_int, #to_i]
86
+ # @param alias_ [String, #to_s, nil]
87
+ # @return [CZMQ::ZdirPatch]
88
+ def self.new(path, file, op, alias_)
89
+ file = file.__ptr if file
90
+ op = Integer(op)
91
+ ptr = ::CZMQ::FFI.zdir_patch_new(path, file, op, alias_)
92
+ __new ptr
93
+ end
94
+
95
+ # Destroy a patch
96
+ #
97
+ # @return [void]
98
+ def destroy()
99
+ return unless @ptr
100
+ self_p = __ptr_give_ref
101
+ result = ::CZMQ::FFI.zdir_patch_destroy(self_p)
102
+ result
103
+ end
104
+
105
+ # Create copy of a patch. If the patch is null, or memory was exhausted,
106
+ # returns null.
107
+ #
108
+ # @return [ZdirPatch]
109
+ def dup()
110
+ raise DestroyedError unless @ptr
111
+ self_p = @ptr
112
+ result = ::CZMQ::FFI.zdir_patch_dup(self_p)
113
+ result = ZdirPatch.__new result, true
114
+ result
115
+ end
116
+
117
+ # Return patch file directory path
118
+ #
119
+ # @return [String]
120
+ def path()
121
+ raise DestroyedError unless @ptr
122
+ self_p = @ptr
123
+ result = ::CZMQ::FFI.zdir_patch_path(self_p)
124
+ result
125
+ end
126
+
127
+ # Return patch file item
128
+ #
129
+ # @return [Zfile]
130
+ def file()
131
+ raise DestroyedError unless @ptr
132
+ self_p = @ptr
133
+ result = ::CZMQ::FFI.zdir_patch_file(self_p)
134
+ result = Zfile.__new result, false
135
+ result
136
+ end
137
+
138
+ # Return operation
139
+ #
140
+ # @return [Integer]
141
+ def op()
142
+ raise DestroyedError unless @ptr
143
+ self_p = @ptr
144
+ result = ::CZMQ::FFI.zdir_patch_op(self_p)
145
+ result
146
+ end
147
+
148
+ # Return patch virtual file path
149
+ #
150
+ # @return [String]
151
+ def vpath()
152
+ raise DestroyedError unless @ptr
153
+ self_p = @ptr
154
+ result = ::CZMQ::FFI.zdir_patch_vpath(self_p)
155
+ result
156
+ end
157
+
158
+ # Calculate hash digest for file (create only)
159
+ #
160
+ # @return [void]
161
+ def digest_set()
162
+ raise DestroyedError unless @ptr
163
+ self_p = @ptr
164
+ result = ::CZMQ::FFI.zdir_patch_digest_set(self_p)
165
+ result
166
+ end
167
+
168
+ # Return hash digest for patch file
169
+ #
170
+ # @return [String]
171
+ def digest()
172
+ raise DestroyedError unless @ptr
173
+ self_p = @ptr
174
+ result = ::CZMQ::FFI.zdir_patch_digest(self_p)
175
+ result
176
+ end
177
+
178
+ # Self test of this class.
179
+ #
180
+ # @param verbose [Boolean]
181
+ # @return [void]
182
+ def self.test(verbose)
183
+ verbose = !(0==verbose||!verbose) # boolean
184
+ result = ::CZMQ::FFI.zdir_patch_test(verbose)
185
+ result
186
+ end
187
+ end
188
+ end
189
+ end
190
+
191
+ ################################################################################
192
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
193
+ # Read the zproject/README.md for information about making permanent changes. #
194
+ ################################################################################