class Bignum

Public Instance Methods

to_ber() click to toggle source
# 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