Class: ProtocolBuffers::Field::Sfixed64Field
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
435
436
437
|
# File 'lib/protocol_buffers/runtime/field.rb', line 435
def max
(1 << 63) - 1
end
|
#min ⇒ Object
431
432
433
|
# File 'lib/protocol_buffers/runtime/field.rb', line 431
def min
-(1 << 63)
end
|
#pack_code ⇒ Object
427
428
429
|
# File 'lib/protocol_buffers/runtime/field.rb', line 427
def pack_code
'q'
end
|
#valid_type?(value) ⇒ Boolean
439
440
441
|
# File 'lib/protocol_buffers/runtime/field.rb', line 439
def valid_type?(value)
value.is_a?(Integer)
end
|