LSLib.Granny.GR2.WritableSection.AlignWrite C# (CSharp) 메소드

AlignWrite() 개인적인 메소드

private AlignWrite ( ) : void
리턴 void
        internal void AlignWrite()
        {
            if (Writer == MainWriter)
            {
                // Align the struct so its size (and the address of the subsequent struct) is a multiple of 4
                while ((MainStream.Position % 4) != 0)
                {
                    Writer.Write((Byte)0);
                }
            }
            else
            {
                // Align the struct so its size (and the address of the subsequent struct) is a multiple of 4
                while ((DataStream.Position % 4) != 0)
                {
                    Writer.Write((Byte)0);
                }
            }
        }