# Module ramp::ll::base [−] [src]

Base conversion utilities

Provides functions for converting an integer to/from a given base. In both `to_base` and `from_base` the base-N output or input (respectively) is stored as raw bytes. That means that a base-10 input contains bytes each with a value from 0-9.

## Functions

base_digits_to_len |
from_base | Converts the base `base` bytestring {bp, bs}, storing the limbs in `out`. `out` is assumed to have enough space to store the result.
num_base_digits |
to_base | Converts `nn` limbs at `np` to the given base, storing the output in `out`. `out` is assumed to have enough space for the entire digit. The output is stored from most-significant digit to least.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)