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, #add_reader_to, #add_writer_to, #check_valid, #check_value, create, #deserialize, #initialize, #inspect_value, #packed?, #repeated?, #serialize, #text_format
Instance Method Details
#max ⇒ Object
522
523
524
|
# File 'lib/protocol_buffers/runtime/field.rb', line 522
def max
(1 << 63) - 1
end
|
#min ⇒ Object
518
519
520
|
# File 'lib/protocol_buffers/runtime/field.rb', line 518
def min
-(1 << 63)
end
|
#pack_code ⇒ Object
514
515
516
|
# File 'lib/protocol_buffers/runtime/field.rb', line 514
def pack_code
'q'
end
|
#valid_type?(value) ⇒ Boolean
526
527
528
|
# File 'lib/protocol_buffers/runtime/field.rb', line 526
def valid_type?(value)
value.is_a?(Integer)
end
|