Class: ProtocolBuffers::Field::Sfixed32Field
Instance Attribute Summary
#name, #otype, #tag
Instance Method Summary
collapse
#deserialize, #serialize, #wire_type
#check_value, #default_value
#add_methods_to, #check_valid, #check_value, create, #deserialize, #initialize, #inspect_value, #repeated?, #serialize
Instance Method Details
#max ⇒ Object
391
392
393
|
# File 'lib/protocol_buffers/runtime/field.rb', line 391
def max
(1 << 31) - 1
end
|
#min ⇒ Object
387
388
389
|
# File 'lib/protocol_buffers/runtime/field.rb', line 387
def min
-(1 << 31)
end
|
#pack_code ⇒ Object
383
384
385
|
# File 'lib/protocol_buffers/runtime/field.rb', line 383
def pack_code
'l'
end
|
#valid_type?(value) ⇒ Boolean
395
396
397
|
# File 'lib/protocol_buffers/runtime/field.rb', line 395
def valid_type?(value)
value.is_a?(Integer)
end
|