- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SliceOS (0.22 sec)
-
src/cmd/internal/bio/buf_nommap.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !unix package bio func (r *Reader) sliceOS(length uint64) ([]byte, bool) { return nil, false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 269 bytes - Viewed (0) -
src/cmd/internal/bio/buf_mmap.go
// OpenBSD unlimited var mmapLimit int32 = 1<<31 - 1 func init() { // Linux is the only practically concerning OS. if runtime.GOOS == "linux" { mmapLimit = 30000 } } func (r *Reader) sliceOS(length uint64) ([]byte, bool) { // For small slices, don't bother with the overhead of a // mapping, especially since we have no way to unmap it. const threshold = 16 << 10 if length < threshold { return nil, false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.6K bytes - Viewed (0) -
src/cmd/internal/cov/mreader.go
) // This file contains the helper "MReader", a wrapper around bio plus // an "mmap'd read-only" view of the file obtained from bio.SliceRO(). // MReader is designed to implement the io.ReaderSeeker interface. // Since bio.SliceOS() is not guaranteed to succeed, MReader falls back // on explicit reads + seeks provided by bio.Reader if needed. type MReader struct { f *os.File rdr *bio.Reader fileView []byte off int64 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:12:25 UTC 2023 - 1.8K bytes - Viewed (0)