Achamenes.ID3.Frames.Writers.MusicCDIdentifierFrameWriter.WriteToStream C# (CSharp) Метод

WriteToStream() публичный Метод

public WriteToStream ( System stream ) : void
stream System
Результат void
        public override void WriteToStream(System.IO.Stream stream)
        {
            MusicCDIdentifierFrame frame=(MusicCDIdentifierFrame)this.FrameToWrite;
            List<Field> fields=new List<Field>();

            // Declare the fields to write.
            fields.Add(new BinaryField(frame.Identifier, 0, frame.Identifier.Length));

            // Write the header
            int length=0;
            foreach(Field f in fields)
            {
                length+=f.Length;
            }
            HeaderWriter.WriteHeader(stream, new FrameHeader(this.FrameID, length));

            // Write the fields
            foreach(Field f in fields)
            {
                f.WriteToStream(stream);
            }
        }