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[])); |
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 |
} |
} |
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 |
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. |
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; |
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 |
|
|