Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2498 | - | 1 | |
2 | namespace GMap.NET.Internals |
||
3 | { |
||
4 | using System.IO; |
||
5 | using System; |
||
6 | |||
7 | /// <summary> |
||
8 | /// cache queue item |
||
9 | /// </summary> |
||
10 | internal struct CacheQueueItem |
||
11 | { |
||
12 | public RawTile Tile; |
||
13 | public byte[] Img; |
||
14 | public CacheUsage CacheType; |
||
15 | |||
16 | public CacheQueueItem(RawTile tile, byte[] Img, CacheUsage cacheType) |
||
17 | { |
||
18 | this.Tile = tile; |
||
19 | this.Img = Img; |
||
20 | this.CacheType = cacheType; |
||
21 | } |
||
22 | |||
23 | public override string ToString() |
||
24 | { |
||
25 | return Tile + ", CacheType:" + CacheType; |
||
26 | } |
||
27 | |||
28 | public void Clear() |
||
29 | { |
||
30 | Img = null; |
||
31 | } |
||
32 | } |
||
33 | |||
34 | internal enum CacheUsage |
||
35 | { |
||
36 | First = 2, |
||
37 | Second = 4, |
||
38 | Both = First | Second |
||
39 | } |
||
40 | } |