Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ErrTooMuchDataToWrite (0.16 sec)

  1. internal/ringbuffer/ring_buffer.go

    // license that can be found in the LICENSE file.
    
    package ringbuffer
    
    import (
    	"context"
    	"errors"
    	"io"
    	"sync"
    	"unsafe"
    )
    
    var (
    	// ErrTooMuchDataToWrite is returned when the data to write is more than the buffer size.
    	ErrTooMuchDataToWrite = errors.New("too much data to write")
    
    	// ErrIsFull is returned when the buffer is full and not blocking.
    	ErrIsFull = errors.New("ringbuffer is full")
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. internal/ringbuffer/ring_buffer_test.go

    			if err != nil && err != ErrAcquireLock && err != ErrTooMuchDataToWrite && err != ErrIsFull {
    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    			wrote.Write(buf[:n])
    			debugln("WRITE 4\t", n, wroteBytes)
    
    			// TryWriteByte
    			err = rb.TryWriteByte(buf[0])
    			if err != nil && err != ErrAcquireLock && err != ErrTooMuchDataToWrite && err != ErrIsFull {
    				t.Fatalf("write failed: %v", err)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top