RrdPrimitive(RrdUpdater<U> updater, int type, int count, boolean isConstant) throws IOException { this.backend = updater.getRrdBackend(); this.byteCount = RRD_PRIM_SIZES[type] * count; this.pointer = updater.getRrdAllocator().allocate(byteCount); this.cachingAllowed = isConstant || backend.isCachingAllowed(); }
RrdPrimitive(RrdUpdater updater, int type, int count, boolean isConstant) throws IOException { this.backend = updater.getRrdBackend(); this.byteCount = RRD_PRIM_SIZES[type] * count; this.pointer = updater.getRrdAllocator().allocate(byteCount); this.cachingAllowed = isConstant || backend.isCachingAllowed(); }