/[dotgnu-pnet]/pnetlib/System.Windows.Forms/ImageListStreamer.cs
ViewVC logotype

Diff of /pnetlib/System.Windows.Forms/ImageListStreamer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by t3rmin4t0r, Sat Jun 5 15:04:38 2004 UTC revision 1.8 by drobosson, Sun Aug 7 10:53:57 2005 UTC
# Line 36  public class ImageListStreamer : ISerial Line 36  public class ImageListStreamer : ISerial
36                                                                                          /*  M      S      F      t */                                                                                          /*  M      S      F      t */
37          private static byte[] magicBytes = new byte[] { 0x4d , 0x53 , 0x46 , 0x74 };          private static byte[] magicBytes = new byte[] { 0x4d , 0x53 , 0x46 , 0x74 };
38          internal Image[] images = null;          internal Image[] images = null;
         // TODO  
39    
40            [TODO]
41          internal ImageListStreamer(ImageList imageList)          internal ImageListStreamer(ImageList imageList)
42          {          {
43                  // TODO                  return;
44          }          }
45    
46            [TODO]
47          private ImageListStreamer(SerializationInfo info, StreamingContext context)          private ImageListStreamer(SerializationInfo info, StreamingContext context)
48          {          {
49                  byte [] data = (byte[])info.GetValue("Data", typeof(byte[]));                  byte [] data = (byte[])info.GetValue("Data", typeof(byte[]));
# Line 50  public class ImageListStreamer : ISerial Line 52  public class ImageListStreamer : ISerial
52                  {                  {
53                          if(ms.ReadByte() != b)                          if(ms.ReadByte() != b)
54                          {                          {
55                                  // TODO : I18n                                  // Handle I18n
56                                  throw new FormatException("invalid signature");                                  throw new FormatException("invalid signature");
57                          }                          }
58                  }                  }
# Line 108  public class ImageListStreamer : ISerial Line 110  public class ImageListStreamer : ISerial
110                  }                  }
111          }          }
112    
113            [TODO]
114          public virtual void GetObjectData(SerializationInfo si, StreamingContext context)          public virtual void GetObjectData(SerializationInfo si, StreamingContext context)
115          {          {
116                  // TODO                  return;
117          }          }
118    
119          internal Image[] Images          internal Image[] Images
# Line 121  public class ImageListStreamer : ISerial Line 124  public class ImageListStreamer : ISerial
124                  }                  }
125          }          }
126    
127          // TODO: move into DotGNU.Images          [TODO]
128            // Move into DotGNU.Images
129          private sealed class RunLengthEncodedStream : Stream          private sealed class RunLengthEncodedStream : Stream
130          {          {
131                  // Constructor.                  // Constructor.
# Line 147  public class ImageListStreamer : ISerial Line 151  public class ImageListStreamer : ISerial
151                                  underlying.Flush();                                  underlying.Flush();
152                          }                          }
153                  }                  }
154    
155                    [TODO]
156                  public override int Read(byte[] buffer, int offset, int count)                  public override int Read(byte[] buffer, int offset, int count)
157                  {                  {
158                          int len = 0;                          int len = 0;
# Line 166  public class ImageListStreamer : ISerial Line 172  public class ImageListStreamer : ISerial
172                          }                          }
173                          else if((buffer.Length - offset) < count)                          else if((buffer.Length - offset) < count)
174                          {                          {
175                                  // TODO : I18n                                  // Handle I18n
176                                  throw new ArgumentException("Invalid array range");                                  throw new ArgumentException("Invalid array range");
177                          }                          }
178    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26