// ---- METHODS (PUBLIC) --------------------------------------------------------------------------------------- /// <summary> /// Aligns the writer to the next given byte multiple. /// </summary> /// <param name="alignment">The byte multiple.</param> /// <param name="grow"><c>true</c> to enlarge the stream size to include the final position in case it is larger /// than the current stream length.</param> /// <returns>The new position within the current stream.</returns> public long Align(int alignment, bool grow = false) { return(BaseStream.Align(alignment, grow)); }
// ---- METHODS (PUBLIC) --------------------------------------------------------------------------------------- /// <summary> /// Aligns the reader to the next given byte multiple. /// </summary> /// <param name="alignment">The byte multiple.</param> /// <returns>The new position within the current stream.</returns> public long Align(int alignment) { return(BaseStream.Align(alignment)); }