Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 189 for buffer_end (0.16 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package buffered
    
    import (
    	"fmt"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 14 17:20:35 UTC 2018
    - 5.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedDecoder.java

            }
            return value;
        }
    
        /**
         * Returns the total number of bytes consumed by this decoder. Some additional bytes may also be buffered by this decoder but have not been consumed.
         */
        public long getReadPosition() {
            return input.total() + extraSkipped;
        }
    
        @Override
        public void close() throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. src/encoding/json/stream.go

    	err = dec.d.unmarshal(v)
    
    	// fixup token streaming state
    	dec.tokenValueEnd()
    
    	return err
    }
    
    // Buffered returns a reader of the data remaining in the Decoder's
    // buffer. The reader is valid until the next call to [Decoder.Decode].
    func (dec *Decoder) Buffered() io.Reader {
    	return bytes.NewReader(dec.buf[dec.scanp:])
    }
    
    // readValue reads a JSON value into dec.buf.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  4. internal/pubsub/pubsub.go

    	// not atomics:
    	subs []*Sub[T]
    	sync.RWMutex
    }
    
    // Publish message to the subscribers.
    // Note that publish is always non-blocking send so that we don't block on slow receivers.
    // Hence receivers should use buffered channel so as not to miss the published events.
    func (ps *PubSub[T, M]) Publish(item T) {
    	ps.RLock()
    	defer ps.RUnlock()
    	for _, sub := range ps.subs {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/text/tabwriter/tabwriter.go

    					}
    					b.write0(b.buf[pos : pos+c.size])
    					pos += c.size
    				}
    			}
    		}
    
    		if i+1 == len(b.lines) {
    			// last buffered line - we don't have a newline, so just write
    			// any outstanding buffered data
    			b.write0(b.buf[pos : pos+b.cell.size])
    			pos += b.cell.size
    		} else {
    			// not the last line - write newline
    			b.write0(newline)
    		}
    	}
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  6. src/runtime/trace/trace.go

    package trace
    
    import (
    	"io"
    	"runtime"
    	"sync"
    	"sync/atomic"
    )
    
    // Start enables tracing for the current program.
    // While tracing, the trace will be buffered and written to w.
    // Start returns an error if tracing is already enabled.
    func Start(w io.Writer) error {
    	tracing.Lock()
    	defer tracing.Unlock()
    
    	if err := runtime.StartTrace(); err != nil {
    		return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 00:47:09 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/CharSink.java

       *
       * @throws IOException if an I/O error occurs while opening the writer
       */
      public abstract Writer openStream() throws IOException;
    
      /**
       * Opens a new buffered {@link Writer} for writing to this sink. The returned stream is not
       * required to be a {@link BufferedWriter} in order to allow implementations to simply delegate to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/vcweb/svn.go

    	logger  *log.Logger
    
    	pathOnce     sync.Once
    	svnservePath string // the path to the 'svnserve' executable
    	svnserveErr  error
    
    	listenOnce sync.Once
    	s          chan *svnState // 1-buffered
    }
    
    // An svnState describes the state of a port serving the 'svn://' protocol.
    type svnState struct {
    	listener  net.Listener
    	listenErr error
    	conns     map[net.Conn]struct{}
    	closing   bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:44:48 UTC 2022
    - 5K bytes
    - Viewed (0)
  9. cmd/listen-notification-handlers.go

    	setEventStreamHeaders(w)
    
    	// Listen Publisher and peer-listen-client uses nonblocking send and hence does not wait for slow receivers.
    	// Use buffered channel to take care of burst sends or slow w.Write()
    	mergeCh := make(chan []byte, globalAPIConfig.getRequestsPoolCapacity()*len(globalEndpoints.Hostnames()))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/compress/zlib/writer.go

    	wroteHeader bool
    }
    
    // NewWriter creates a new Writer.
    // Writes to the returned Writer are compressed and written to w.
    //
    // It is the caller's responsibility to call Close on the Writer when done.
    // Writes may be buffered and not flushed until Close.
    func NewWriter(w io.Writer) *Writer {
    	z, _ := NewWriterLevelDict(w, DefaultCompression, nil)
    	return z
    }
    
    // NewWriterLevel is like NewWriter but specifies the compression level instead
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 18:51:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top