// Copyright 2017 The Wuffs Authors. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // // SPDX-License-Identifier: Apache-2.0 OR MIT // ---------------- // Package base38 converts a 4-byte string, each byte in [.0-9a-z~], to a base // 38 number. package base38 const ( // Max is the inclusive upper bound for the value returned by Encode. Its // value equals (38*38*38*38 - 1). Max = 2085135 // MaxBits is the number of bits required to represent Max. It satisfies // (1<<(MaxBits-1) <= Max) && (Max < 1<