Class WireBytesTileCodec
- Namespace
- LansMap.Core.TileCodecs
Disk-format tag for compressed network bytes (PNG/JPEG): declares that an image decode must run before the payload is pixel data.
public sealed class WireBytesTileCodec : ITileCodec
- Inheritance
-
objectWireBytesTileCodec
- Implements
Properties
Format
The TileCacheBlob.Format tag this codec recognizes.
public TileCacheBlob.Format Format { get; }
Property Value
RequiresDecode
True when the payload is still compressed (PNG/JPEG) and needs an image decode; false when it is already GPU-ready blocks.
public bool RequiresDecode { get; }
Property Value
Methods
TryBuildMips(byte[], int, int, int, int, byte[][])
Always returns false: wire bytes go through the image decode pipeline, not this method.
public bool TryBuildMips(byte[] payload, int offset, int length, int tileSizePx, int requiredLevels, byte[][] mips)
Parameters
payloadbyte[]Ignored.
offsetintIgnored.
lengthintIgnored.
tileSizePxintIgnored.
requiredLevelsintIgnored.
mipsbyte[][]Ignored.
Returns
- bool
False. Never throws.