Beispiel #1
0
        private void writeToStream(BinaryWriter writer)
        {
            header.FileSize = 4 + fmt.FmtSize + 8 + data.DataSize + 8 + (hasSmpl ? smpl.SmplSize + 8 : 0);

            header.Write(writer);
            fmt.Write(writer);
            data.Write(writer);
            if (hasSmpl)
            {
                smpl.Write(writer);
            }
        }
Beispiel #2
0
        private void WriteToStream(BinaryWriter writer)
        {
            header.FileSize = (uint)(4 + (int)fmt.FmtSize + 8 + (int)data.DataSize + 8 + (hasSmpl ? (int)smpl.SmplSize + 8 : 0));
            header.Write(writer);
            fmt.Write(writer);
            data.Write(writer);
            if (!hasSmpl)
            {
                return;
            }

            smpl.Write(writer);
        }