From 26fdea679555b279d4904728f1b54b67e1679dfa Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Thu, 2 Mar 2017 17:22:10 +0100 Subject: [PATCH] make optcarrot sdl output-only work --- lib-topaz/ffitopaz/pointer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib-topaz/ffitopaz/pointer.rb b/lib-topaz/ffitopaz/pointer.rb index 072923fea..173bc7624 100644 --- a/lib-topaz/ffitopaz/pointer.rb +++ b/lib-topaz/ffitopaz/pointer.rb @@ -13,5 +13,9 @@ def NULL.method_missing(meth_id, *args) end raise NoMethodError.new("undefined method `#{meth_name}' for #{self}") end + + def write_array_of_uint32(ary) + write_string(ary.pack("L#{ary.size}")) + end end end