- Sort Score
- Num 10 results
- Language All
Results 721 - 730 of 1,039 for take (0.03 seconds)
-
src/bytes/example_test.go
b = strconv.AppendInt(b, int64(i), 10) b = append(b, ' ') buf.Write(b) } os.Stdout.Write(buf.Bytes()) // Output: 0 1 2 3 } func ExampleBuffer_Cap() { buf1 := bytes.NewBuffer(make([]byte, 10)) buf2 := bytes.NewBuffer(make([]byte, 0, 10)) fmt.Println(buf1.Cap()) fmt.Println(buf2.Cap()) // Output: // 10 // 10 } func ExampleBuffer_Grow() { var b bytes.Buffer b.Grow(64) bb := b.Bytes()
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon May 12 16:07:54 GMT 2025 - 16.5K bytes - Click Count (0) -
cmd/storage-datatypes.go
// Make sure to bump the internode version at storage-rest-common.go type RawFileInfo struct { // Content of entire xl.meta (may contain data depending on what was requested by the caller. Buf []byte `msg:"b,allownil"` } // FileInfo - represents file stat information. // The above means that any added/deleted fields are incompatible.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 17.4K bytes - Click Count (0) -
callbacks/helper_test.go
func TestLoadOrStoreVisitMap(t *testing.T) { var vm visitMap var loaded bool type testM struct { Name string } t1 := testM{Name: "t1"} t2 := testM{Name: "t2"} t3 := testM{Name: "t3"} vm = make(visitMap) if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded { t.Fatalf("loaded should be false") } if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); !loaded {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Mar 05 02:22:57 GMT 2024 - 3.4K bytes - Click Count (0) -
buildscripts/minio-upgrade.sh
wget -O /tmp/gopath/bin/docker-compose https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-linux-x86_64 chmod +x /tmp/gopath/bin/docker-compose cleanup TAG=minio/minio:dev make docker MINIO_VERSION=RELEASE.2019-12-19T22-52-26Z docker-compose \ -f "buildscripts/upgrade-tests/compose.yml" \ up -d --build add_alias mc mb minio/minio-test/Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Apr 21 16:24:31 GMT 2025 - 2.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/FlakyTestQuarantine.kt
script { // Because we exclude tests in `distributions-integ-tests` below, `@Flaky` won't work in that subproject. // Here we check the existence of `@Flaky` annotation to make sure nobody use that annotation in `distributions-integ-tests` subproject. name = "MAKE_SURE_NO_@FLAKY_IN_DISTRIBUTIONS_INTEG_TESTS" executionMode = BuildStep.ExecutionMode.ALWAYSCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 22 07:15:16 GMT 2025 - 5.6K bytes - Click Count (0) -
cmd/erasure-server-pool-decom_gen.go
if err != nil { err = msgp.WrapError(err, "QueuedBuckets") return } if cap(z.QueuedBuckets) >= int(zb0002) { z.QueuedBuckets = (z.QueuedBuckets)[:zb0002] } else { z.QueuedBuckets = make([]string, zb0002) } for za0001 := range z.QueuedBuckets { z.QueuedBuckets[za0001], err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "QueuedBuckets", za0001) return } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.7K bytes - Click Count (0) -
buildscripts/verify-healing-with-root-disks.sh
for i in $(seq 1 4); do while [ "$(curl -m 1 -s -o /dev/null -w "%{http_code}" http://localhost:$((start_port + i)))" -ne "403" ]; do echo -n "." sleep 1 done done } # Prepare fake disks with losetup function prepare_block_devices() { set -e mkdir -p ${WORK_DIR}/disks/ ${WORK_DIR}/mnt/ sudo modprobe loop for i in 1 2 3 4; do dd if=/dev/zero of=${WORK_DIR}/disks/img.${i} bs=1M count=2000
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 26 05:07:25 GMT 2023 - 2.2K bytes - Click Count (0) -
cmd/metacache_gen_test.go
v := metacache{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgmetacache(b *testing.B) { v := metacache{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 2.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java
private final Logger logger = LoggerFactory.getLogger(getClass()); private final List<EventSpy> eventSpies; @Inject public EventSpyDispatcher(List<EventSpy> eventSpies) { // make copy to get rid of needless overhead for dynamic lookups this.eventSpies = new ArrayList<>(eventSpies); } public ExecutionListener chainListener(ExecutionListener listener) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.3K bytes - Click Count (0) -
docs/en/docs/advanced/response-cookies.md
/// tip Keep in mind that if you return a response directly instead of using the `Response` parameter, FastAPI will return it directly. So, you will have to make sure your data is of the correct type. E.g. it is compatible with JSON, if you are returning a `JSONResponse`. And also that you are not sending any data that should have been filtered by a `response_model`. ///
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.3K bytes - Click Count (0)