maxObjectsForBytes static method

int maxObjectsForBytes(
  1. int bytes
)

The wire budget is an estimate: CacheManager limits files, not bytes.

Implementation

static int maxObjectsForBytes(int bytes) =>
    max(1, bytes ~/ bytesPerCacheObject);