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, #add_reader_to, #add_writer_to, #check_valid, #check_value, create, #deserialize, #initialize, #inspect_value, #packed?, #repeated?, #serialize, #valid_type?
Instance Method Details
#bits ⇒ Object
431
432
433
|
# File 'lib/protocol_buffers/runtime/field.rb', line 431
def bits
32
end
|
#max ⇒ Object
427
428
429
|
# File 'lib/protocol_buffers/runtime/field.rb', line 427
def max
(1 << 31) - 1
end
|
#min ⇒ Object
423
424
425
|
# File 'lib/protocol_buffers/runtime/field.rb', line 423
def min
-(1 << 31)
end
|