public GetCompressedCopy ( [ stream, bool prependBlockCount ) : void | ||
stream | [ | Stream to write the compressed data to. |
prependBlockCount | bool | If true, prepends block data with signed, 32bit, big-endian block count. |
return | void |
byte[] GetCompressedBlocks(Map map) { bool customBlocks = Supports(CpeExtension.CustomBlocks); if (customBlocks && Supports(CpeExtension.BlockDefinitions)) return map.GetCompressedCopy(map.Blocks); byte[] blocks = customBlocks ? map.GetCPEFallbackMap() : map.GetFallbackMap(); return Map.MakeCompressedMap(blocks); }