Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的代码不起作用,但是 boolean 类型存在并且我在另一个类中以相同的方式使用它,为什么它在这里不起作用?
require 'bindata' class TESTSTUFF < BinData::Record array :boolstuff, :type => :boolean, :initial_length => 8 end
错误是:unknown type 'boolean' in TESTSTUFF (TypeError)
unknown type 'boolean' in TESTSTUFF (TypeError)
中没有这样的boolean参数bindata。使用bit1它是一个 1 位大端整数,可以用作布尔值。查看文档。
boolean
bindata
bit1
tag to selected text