Class TileDecodeWorker
- Namespace
- LansMap.Map.TilePipeline.Decode
public sealed class TileDecodeWorker : IDisposable
- Inheritance
-
objectTileDecodeWorker
- Implements
Constructors
TileDecodeWorker(bool)
public TileDecodeWorker(bool startThread = true)
Parameters
startThreadbool
Properties
InboxCount
public int InboxCount { get; }
Property Value
OutboxCount
public int OutboxCount { get; }
Property Value
PendingCount
public int PendingCount { get; }
Property Value
WorkerThreadAlive
public bool WorkerThreadAlive { get; }
Property Value
Methods
DecodeOne(in Request)
public void DecodeOne(in TileDecodeWorker.Request req)
Parameters
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Enqueue(TileCoord, byte[], int, int, bool, bool, bool, bool, ITileBlockCodec, bool, ITileBlockCodec)
public void Enqueue(TileCoord tile, byte[] bytes, int length, int expectedSize, bool instant, bool persist, bool pooled, bool packRgb565 = false, ITileBlockCodec packBlocks = null, bool isJpeg = false, ITileBlockCodec decodeBlocks = null)
Parameters
tileTileCoordbytesbyte[]lengthintexpectedSizeintinstantboolpersistboolpooledboolpackRgb565boolpackBlocksITileBlockCodecisJpegbooldecodeBlocksITileBlockCodec
ProcessOneSafely(in Request)
public void ProcessOneSafely(in TileDecodeWorker.Request req)
Parameters
ReturnBlockPayload(byte[])
public void ReturnBlockPayload(byte[] buf)
Parameters
bufbyte[]
ReturnPacked565(byte[])
public void ReturnPacked565(byte[] buf)
Parameters
bufbyte[]
ReturnRgba(byte[])
public void ReturnRgba(byte[] buf)
Parameters
bufbyte[]
TryDequeue(out Result)
public bool TryDequeue(out TileDecodeWorker.Result r)