Class: ProtocolBuffers::Field::Int64Field

Inherits:
SignedVarintField show all
Defined in:
lib/protocol_buffers/runtime/field.rb

Direct Known Subclasses

Sint64Field

Instance Attribute Summary

Attributes inherited from ProtocolBuffers::Field

#name, #otype, #tag

Instance Method Summary collapse

Methods inherited from SignedVarintField

#deserialize

Methods inherited from VarintField

#valid_type?

Methods included from WireFormats::VARINT

#wire_type

Methods inherited from NumericField

#check_value, #default_value

Methods inherited from ProtocolBuffers::Field

#add_methods_to, #check_valid, #check_value, create, #deserialize, #initialize, #inspect_value, #repeated?, #serialize, #valid_type?

Instance Method Details

#bitsObject



409
410
411
# File 'lib/protocol_buffers/runtime/field.rb', line 409

def bits
  64
end

#maxObject



405
406
407
# File 'lib/protocol_buffers/runtime/field.rb', line 405

def max
  (1 << 63) - 1
end

#minObject



401
402
403
# File 'lib/protocol_buffers/runtime/field.rb', line 401

def min
  -(1 << 63)
end