Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ziglang/zig
base: 339d48ac1558
Choose a base ref
...
head repository: ziglang/zig
compare: afbbdb2c6712
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 21, 2017

  1. rework std.base64 api

    * rename decode to decodeExactUnsafe.
    * add decodeExact, which checks for invalid chars and padding.
    * add decodeWithIgnore, which also allows ignoring chars.
    * alphabets are supplied to the decoders with their
      char-to-index mapping already built, which enables it to be
      done at comptime.
    * all decode/encode apis except decodeWithIgnore require dest
      to be the exactly correct length. This is calculated by a
      calc function corresponding to each api. These apis no longer
      return the dest parameter.
    * for decodeWithIgnore, an exact size cannot be known a priori.
      Instead, a calc function gives an upperbound, and a runtime
      error is returned in case of overflow. decodeWithIgnore
      returns the number of bytes written to dest.
    
    closes #611
    thejoshwolfe committed Nov 21, 2017
    Configuration menu
    Copy the full SHA
    a44283b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    afbbdb2 View commit details
    Browse the repository at this point in the history