Beispiel #1
0
 /// <summary>
 ///     Generates an alignment (null-filled) chunk to align the stream to the given byte boundary.
 /// </summary>
 /// <param name="boundary">The desired alignment.</param>
 public void AlignmentChunk(uint boundary)
 {
     if (_stream.Position % boundary != 0)
     {
         BeginChunk(0);
         BinaryHelpers.AlignStream(_stream, boundary);
         EndChunk();
     }
 }