MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetMaxBytes

Method SetMaxBytes

src/CacheBase.h:105–105  ·  view source on GitHub ↗

@brief Set maximum bytes to a different amount @param number_of_bytes The maximum bytes to allow in the cache. Once exceeded, the cache will purge the oldest frames.

Source from the content-addressed store, hash-verified

103 /// @brief Set maximum bytes to a different amount
104 /// @param number_of_bytes The maximum bytes to allow in the cache. Once exceeded, the cache will purge the oldest frames.
105 void SetMaxBytes(int64_t number_of_bytes) { max_bytes = number_of_bytes; };
106
107 /// @brief Set maximum bytes to a different amount based on a ReaderInfo struct
108 /// @param number_of_frames The maximum number of frames to hold in cache

Callers 3

Clip.cppFile · 0.80
CacheMemory.cppFile · 0.80
CacheDisk.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected