roundUpToAlignment

Advances the beginning of b to start at alignment a. The resulting buffer may therefore be shorter. Returns the adjusted buffer, or null if obtaining a non-empty buffer is impossible.

  1. size_t roundUpToAlignment(size_t n, uint alignment)
  2. void[] roundUpToAlignment(void[] b, uint a)
    @nogc nothrow pure
    void[]
    roundUpToAlignment
    ()
    (
    void[] b
    ,
    uint a
    )

Meta