Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #21872

Closed (moved)
(moved)
Open
Created Apr 05, 2017 by Taylor Yu@catalyst

encoded length macros for baseXX encodings

It can be useful to have macros that give the lengths of byte strings encoded with baseXX, particularly for declaring fixed-size buffers. Some use cases will need to include a terminating NUL, others not. These macros won't check for overflow, so nothing should pass untrusted inputs to them.

I propose macros named like BASE64_LEN() for the raw length and like BASE64_SIZE() for the length with NUL.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking