Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for eof (4.77 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/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            }
            return Encdec.dec_uint32be( tmp, 0 );
        }
        public final long readLong() throws SmbException {
            if((read( tmp, 0, 8 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return Encdec.dec_uint64be( tmp, 0 );
        }
        public final float readFloat() throws SmbException {
            if((read( tmp, 0, 4 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  3. 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)
  4. src/archive/tar/reader_test.go

    		{data2[:2048] + trash, 1, ErrHeader},
    		{data2[:2560], 1, io.EOF}, // Exactly 2 empty blocks (normal end-of-stream)
    		{data2[:2560] + trash[:1], 1, io.EOF},
    		{data2[:2560] + trash[:511], 1, io.EOF},
    		{data2[:2560] + trash, 1, io.EOF},
    		{data2[:3072], 1, io.EOF},
    		{pax, 0, io.EOF}, // PAX header without data is a "valid" tar file
    		{pax + trash[:1], 0, io.ErrUnexpectedEOF},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    	return &Scanner{
    		r:            r,
    		split:        ScanLines,
    		maxTokenSize: MaxScanTokenSize,
    	}
    }
    
    // Err returns the first non-EOF error that was encountered by the [Scanner].
    func (s *Scanner) Err() error {
    	if s.err == io.EOF {
    		return nil
    	}
    	return s.err
    }
    
    // Bytes returns the most recent token generated by a call to [Scanner.Scan].
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K 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. 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)
  8. src/bytes/buffer.go

    // what is required to hold the contents of r, ReadFrom will not grow the
    // underlying buffer.
    const MinRead = 512
    
    // ReadFrom reads data from r until EOF and appends it to the buffer, growing
    // the buffer as needed. The return value n is the number of bytes read. Any
    // error except io.EOF encountered during the read is also returned. If the
    // buffer becomes too large, ReadFrom will panic with [ErrTooLarge].
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

      cat > $BATS_TEST_TMPDIR/allowed_to_be_missing <<EOF
    @absl_py//absl
    @bazel_tools//platforms
    @bazel_tools//third_party/
    @bazel_tools//tools
    @local
    @com_google_absl//absl
    @org_tensorflow//
    @com_github_googlecloudplatform_google_cloud_cpp//google
    @com_github_grpc_grpc//src/compiler
    @platforms//os
    @ruy//
    EOF
    
      # grep patterns for targets which are allowed to be extra licenses
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  10. cmd/metacache-stream_test.go

    	r := loadMetacacheSample(t)
    	defer r.Close()
    	entries, err := r.readN(-1, false, true, false, "")
    	if err != io.EOF {
    		t.Fatal(err)
    	}
    
    	return entries
    }
    
    func Test_metacacheReader_readNames(t *testing.T) {
    	r := loadMetacacheSample(t)
    	defer r.Close()
    	names, err := r.readNames(-1)
    	if err != io.EOF {
    		t.Fatal(err)
    	}
    	want := loadMetacacheSampleNames
    	if !reflect.DeepEqual(names, want) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
Back to top