Size returns the total memory footprint of z in bytes.
()
| 293 | |
| 294 | // Size returns the total memory footprint of z in bytes. |
| 295 | func (z *BigInt) Size() uintptr { |
| 296 | if z.isInline() { |
| 297 | return bigIntSize |
| 298 | } |
| 299 | return bigIntSize + mathBigIntSize + uintptr(cap(z._inner.Bits()))*mathWordSize |
| 300 | } |
| 301 | |
| 302 | /////////////////////////////////////////////////////////////////////////////// |
| 303 | // inline arithmetic for small values // |