Class: ProtocolBuffers::Field::Int32Field
Instance Attribute Summary
#name, #otype, #tag
Instance Method Summary
collapse
#deserialize
Methods inherited from VarintField
#valid_type?
#wire_type
#check_value, #default_value
#add_methods_to, #check_valid, #check_value, create, #deserialize, #initialize, #inspect_value, #repeated?, #serialize, #valid_type?
Instance Method Details
#bits ⇒ Object
365
366
367
|
# File 'lib/protocol_buffers/runtime/field.rb', line 365
def bits
32
end
|
#max ⇒ Object
361
362
363
|
# File 'lib/protocol_buffers/runtime/field.rb', line 361
def max
(1 << 31) - 1
end
|
#min ⇒ Object
357
358
359
|
# File 'lib/protocol_buffers/runtime/field.rb', line 357
def min
-(1 << 31)
end
|