Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for eof (0.5 sec)

  1. cmd/metacache-stream.go

    			case nil:
    				r.err = io.EOF
    				return io.EOF
    			case io.EOF:
    				r.err = io.ErrUnexpectedEOF
    				return io.ErrUnexpectedEOF
    			}
    			return err
    		}
    
    		if err := r.mr.Skip(); err != nil {
    			if err == io.EOF {
    				err = io.ErrUnexpectedEOF
    			}
    			r.err = err
    			return err
    		}
    		if err := r.mr.Skip(); err != nil {
    			if err == io.EOF {
    				err = io.ErrUnexpectedEOF
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/text/TokenizerTest.java

            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testWhitespace() throws Exception {
            final Tokenizer tokenizer = new Tokenizer("\t       \n");
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. internal/s3select/csv/reader.go

    		r.readerWg.Wait()
    		r.close = nil
    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    	}
    	return r.readCloser.Close()
    }
    
    // nextSplit will attempt to skip a number of bytes and
    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *Reader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    	buf.Reset()
    
    	// check at EOF
    	if err := buf.UnreadRune(); err == nil {
    		t.Fatal("UnreadRune at EOF: got no error")
    	}
    	if _, _, err := buf.ReadRune(); err == nil {
    		t.Fatal("ReadRune at EOF: got no error")
    	}
    	if err := buf.UnreadRune(); err == nil {
    		t.Fatal("UnreadRune after ReadRune at EOF: got no error")
    	}
    
    	// check not at EOF
    	buf.Write(b)
    	for r := rune(0); r < NRune; r++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. internal/ioutil/read_file.go

    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    	f, err := OsOpenFile(name, readMode, 0o666)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  6. cmd/metacache-server-pool.go

    		// Marker not common with prefix is not implemented. Send an empty response
    		if !HasPrefix(o.Marker, o.Prefix) {
    			return entries, io.EOF
    		}
    	}
    
    	// With max keys of zero we have reached eof, return right here.
    	if o.Limit == 0 {
    		return entries, io.EOF
    	}
    
    	// For delimiter and prefix as '/' we do not list anything at all
    	// along // with the prefix. On a flat namespace with 'prefix'
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  7. internal/grid/grid.go

    		internalByteBuffer.Put(&b)
    		return
    	}
    }
    
    // readAllInto reads from r and appends to b until an error or EOF and returns the data it read.
    // A successful call returns err == nil, not err == EOF. Because readAllInto is
    // defined to read from src until EOF, it does not treat an EOF from Read
    // as an error to be reported.
    func readAllInto(b []byte, r *wsutil.Reader) ([]byte, error) {
    	for {
    		if len(b) == cap(b) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 02 15:56:18 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. cmd/streaming-signature-v4.go

    	_, err = io.ReadFull(cr.reader, signature[:])
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    		cr.err = err
    		return n, cr.err
    	}
    	if !bytes.HasPrefix(signature[:], []byte("chunk-signature=")) {
    		cr.err = errMalformedEncoding
    		return n, cr.err
    	}
    	b, err := cr.reader.ReadByte()
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    		cr.err = err
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  9. .github/workflows/go-fips.yml

              echo Detected go version $GO_VERSION
              cat > Dockerfile.fips.test <<EOF
              FROM golang:${GO_VERSION}
              COPY . /minio
              WORKDIR /minio
              ENV GOEXPERIMENT=boringcrypto
              RUN make
              EOF
    
          - name: Build
            uses: docker/build-push-action@v3
            with:
              context: .
    Others
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 23:44:49 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. ci/official/envs/rbe

      cat <<EOF
    ERROR: RBE was enabled via the 'rbe' env in the 'TFCI' variable.
           TFCI: $TFCI
           TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX is "$TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX".
           But in .bazelrc, there is no "rbe_$TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX".
           That setting must exist for this script to function correctly.
    EOF
      exit 1
    fi
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top