MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_max_grep_bytes_per_object

Method with_max_grep_bytes_per_object

core/src/workspace/s3.rs:354–361  ·  view source on GitHub ↗

Override the per-object body-size ceiling for `grep`. `0` resets to default.

(mut self, bytes: u64)

Source from the content-addressed store, hash-verified

352
353 /// Override the per-object body-size ceiling for `grep`. `0` resets to default.
354 pub fn with_max_grep_bytes_per_object(mut self, bytes: u64) -> Self {
355 self.max_grep_bytes_per_object = if bytes == 0 {
356 DEFAULT_MAX_GREP_BYTES_PER_OBJECT
357 } else {
358 bytes
359 };
360 self
361 }
362
363 /// Active per-object body-size ceiling for `grep` downloads.
364 pub fn max_grep_bytes_per_object(&self) -> u64 {

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected