Class: Bignum

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ber.rb

Instance Method Summary collapse

Instance Method Details

#to_berObject



225
226
227
228
229
# File 'lib/net/ber.rb', line 225

def to_ber
  i = [self].pack('w')
  i.length > 126 and raise Net::BER::BerError.new( "range error in bignum" )
  [2, i.length].pack("CC") + i
end