Searched refs:maxBytes (Results 1 – 2 of 2) sorted by relevance
165 public static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes() argument166 if (maxBytes <= 0) { in readBytes()167 throw new IllegalArgumentException("maxBytes ==" + maxBytes); in readBytes()171 byte[] max = new byte[maxBytes]; in readBytes()172 int bytesRead = in.read(max, 0, maxBytes); in readBytes()
305 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument311 if (!maxBytes) { in setInterfaceSharedQuota()319 if (maxBytes == -1) { in setInterfaceSharedQuota()336 chain, maxBytes, cost)); in setInterfaceSharedQuota()346 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()350 if (maxBytes != mSharedQuotaBytes) { in setInterfaceSharedQuota()351 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota()357 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()411 int BandwidthController::setInterfaceQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceQuota() argument417 if (!maxBytes) { in setInterfaceQuota()[all …]