Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 189 for buffer_end (0.17 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      } else {
        absl::MutexLock l(&gcs_file->buffer_mutex);
        size_t buffer_end = gcs_file->buffer_start + gcs_file->buffer.size();
        size_t copy_size = 0;
        if (offset < buffer_end && gcs_file->buffer_start) {
          copy_size = (std::min)(n, static_cast<size_t>(buffer_end - offset));
          memcpy(buffer,
                 gcs_file->buffer.data() + (offset - gcs_file->buffer_start),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 06:55:53 UTC 2023
    - 46.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered.go

    limitations under the License.
    */
    
    package buffered
    
    import (
    	"fmt"
    	"sync"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/runtime"
    	"k8s.io/apimachinery/pkg/util/wait"
    	auditinternal "k8s.io/apiserver/pkg/apis/audit"
    	"k8s.io/apiserver/pkg/audit"
    	"k8s.io/client-go/util/flowcontrol"
    )
    
    // PluginName is the name reported in error metrics.
    const PluginName = "buffered"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  3. src/os/user/cgo_lookup_unix.go

    	g := &Group{
    		Gid:  strconv.Itoa(int(_C_gr_gid(grp))),
    		Name: _C_GoString(_C_gr_name(grp)),
    	}
    	return g
    }
    
    type bufferKind _C_int
    
    var (
    	userBuffer  = bufferKind(_C__SC_GETPW_R_SIZE_MAX)
    	groupBuffer = bufferKind(_C__SC_GETGR_R_SIZE_MAX)
    )
    
    func (k bufferKind) initialSize() _C_size_t {
    	sz := _C_sysconf(_C_int(k))
    	if sz == -1 {
    		// DragonFly and FreeBSD do not have _SC_GETPW_R_SIZE_MAX.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package buffered provides an implementation for the audit.Backend interface
    // that batches incoming audit events and sends batches to the delegate audit.Backend.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 18:40:46 UTC 2018
    - 809 bytes
    - Viewed (0)
  5. test/fixedbugs/issue27732a.go

    // license that can be found in the LICENSE file.
    
    // This checks that the -smallframes flag forces a large variable to heap.
    
    package main
    
    const (
    	bufferLen = 200000
    )
    
    type kbyte []byte
    type circularBuffer [bufferLen]kbyte
    
    var sink byte
    
    func main() {
    	var c circularBuffer // ERROR "moved to heap: c$"
    	sink = c[0][0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 28 19:27:20 UTC 2019
    - 472 bytes
    - Viewed (0)
  6. src/cmd/internal/bio/buf.go

    package bio
    
    import (
    	"bufio"
    	"io"
    	"log"
    	"os"
    )
    
    // Reader implements a seekable buffered io.Reader.
    type Reader struct {
    	f *os.File
    	*bufio.Reader
    }
    
    // Writer implements a seekable buffered io.Writer.
    type Writer struct {
    	f *os.File
    	*bufio.Writer
    }
    
    // Create creates the file named name and returns a Writer
    // for that file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 11 17:15:15 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    	return NewReaderSize(rd, defaultBufSize)
    }
    
    // Size returns the size of the underlying buffer in bytes.
    func (b *Reader) Size() int { return len(b.buf) }
    
    // Reset discards any buffered data, resets all state, and switches
    // the buffered reader to read from r.
    // Calling Reset on the zero value of [Reader] initializes the internal buffer
    // to the default size.
    // Calling b.Reset(b) (that is, resetting a [Reader] to itself) does nothing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. src/os/signal/example_test.go

    package signal_test
    
    import (
    	"fmt"
    	"os"
    	"os/signal"
    )
    
    func ExampleNotify() {
    	// Set up channel on which to send signal notifications.
    	// We must use a buffered channel or risk missing the signal
    	// if we're not ready to receive when the signal is sent.
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, os.Interrupt)
    
    	// Block until a signal is received.
    	s := <-c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 18:38:23 UTC 2017
    - 1001 bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/TaskOutputPackagingBufferBenchmark.java

    public class TaskOutputPackagingBufferBenchmark extends AbstractTaskOutputPackagingBenchmark {
        @Param({"tar.snappy.small", "tar.snappy.large"})
        String packer;
    
        @Param({"direct", "buffered.small", "buffered.large"})
        String accessor;
    
        @Override
        protected String getPackerName() {
            return packer;
        }
    
        @Override
        protected String getAccessorName() {
            return accessor;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/audit_test.go

    			return o
    		},
    		expected: "union[buffered<log>,ignoreErrors<webhook>]",
    	}, {
    		name: "default webhook with truncating",
    		options: func() *AuditOptions {
    			o := NewAuditOptions()
    			o.WebhookOptions.ConfigFile = webhookConfig
    			o.WebhookOptions.TruncateOptions.Enabled = true
    			o.PolicyFile = policy
    			return o
    		},
    		expected: "truncate<buffered<webhook>>",
    	},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 27 14:57:26 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top