Table of Contents

Class TileDecodeWorker

public sealed class TileDecodeWorker : IDisposable
Inheritance
object
TileDecodeWorker
Implements

Constructors

TileDecodeWorker(bool)

public TileDecodeWorker(bool startThread = true)

Parameters

startThread bool

Properties

InboxCount

public int InboxCount { get; }

Property Value

int

OutboxCount

public int OutboxCount { get; }

Property Value

int

PendingCount

public int PendingCount { get; }

Property Value

int

WorkerThreadAlive

public bool WorkerThreadAlive { get; }

Property Value

bool

Methods

DecodeOne(in Request)

public void DecodeOne(in TileDecodeWorker.Request req)

Parameters

req TileDecodeWorker.Request

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

tile TileCoord
bytes byte[]
length int
expectedSize int
instant bool
persist bool
pooled bool
packRgb565 bool
packBlocks ITileBlockCodec
isJpeg bool
decodeBlocks ITileBlockCodec

ProcessOneSafely(in Request)

public void ProcessOneSafely(in TileDecodeWorker.Request req)

Parameters

req TileDecodeWorker.Request

ReturnBlockPayload(byte[])

public void ReturnBlockPayload(byte[] buf)

Parameters

buf byte[]

ReturnPacked565(byte[])

public void ReturnPacked565(byte[] buf)

Parameters

buf byte[]

ReturnRgba(byte[])

public void ReturnRgba(byte[] buf)

Parameters

buf byte[]

TryDequeue(out Result)

public bool TryDequeue(out TileDecodeWorker.Result r)

Parameters

r TileDecodeWorker.Result

Returns

bool