Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,045 for bread (0.15 sec)

  1. internal/ioutil/read_file.go

    )
    
    // 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 {
    		return nil, nil, err
    	}
    	defer f.Close()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      ops->read_only_memory_region_ops = static_cast<TF_ReadOnlyMemoryRegionOps*>(
          plugin_memory_allocate(TF_READ_ONLY_MEMORY_REGION_OPS_SIZE));
      ops->read_only_memory_region_ops->cleanup =
          tf_read_only_memory_region::Cleanup;
      ops->read_only_memory_region_ops->data = tf_read_only_memory_region::Data;
      ops->read_only_memory_region_ops->length = tf_read_only_memory_region::Length;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

              val byte1 = this[mid + publicSuffixByteIndex] and 0xff
    
              compareResult = byte0 - byte1
              if (compareResult != 0) break
    
              publicSuffixByteIndex++
              currentLabelByteIndex++
              if (publicSuffixByteIndex == publicSuffixLength) break
    
              if (labels[currentLabelIndex].size == currentLabelByteIndex) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

            b += 2 // We rewound two bytes and then added four.
            break
          } else {
            return null // Wrong delimiter.
          }
        }
    
        // Read a group, one to four hex digits.
        var value = 0
        groupOffset = i
        while (i < limit) {
          val hexDigit = input[i].parseHexDigit()
          if (hexDigit == -1) break
          value = (value shl 4) + hexDigit
          i++
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. internal/hash/checksum.go

    		if typ.Is(ChecksumMultipart) {
    			t, n := binary.Uvarint(b)
    			if n < 0 {
    				break
    			}
    			cs = fmt.Sprintf("%s-%d", cs, t)
    			b = b[n:]
    			if part > 0 {
    				cs = ""
    			}
    			if typ.Is(ChecksumIncludesMultipart) {
    				wantLen := int(t) * length
    				if len(b) < wantLen {
    					break
    				}
    				// Read part checksum
    				if part > 0 && uint64(part) <= t {
    					offset := (part - 1) * length
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. cmd/tier-journal.go

    		return nil
    	}
    
    	return errors.New("no local drive found")
    }
    
    // rotate rotates the journal. If a read-only journal already exists it does
    // nothing. Otherwise renames the active journal to a read-only journal and
    // opens a new active journal.
    func (jd *tierDiskJournal) rotate() error {
    	// Do nothing if a read-only journal file already exists.
    	if _, err := os.Stat(jd.ReadOnlyPath()); err == nil {
    		return nil
    	}
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

            while (true) {
              val toSkip = currentPartBytesRemaining(maxResult = 8192)
              if (toSkip == 0L) break
              source.skip(toSkip)
            }
            source.skip(crlfDashDashBoundary.size.toLong())
          }
    
          // Read either \r\n or --\r\n to determine if there is another part.
          var whitespace = false
          afterBoundaryLoop@while (true) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

          frameCallback.onReadMessage(messageFrameBuffer.readByteString())
        }
      }
    
      /** Read headers and process any control frames until we reach a non-control frame. */
      @Throws(IOException::class)
      private fun readUntilNonControlFrame() {
        while (!closed) {
          readHeader()
          if (!isControlFrame) {
            break
          }
          readControlFrame()
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4.go

    		v, err = cr.reader.ReadByte()
    		if err != nil {
    			if err == io.EOF {
    				return io.ErrUnexpectedEOF
    			}
    		}
    		if v != '\n' {
    			return errMalformedEncoding
    		}
    		break
    	}
    
    	// Read signature
    	var signatureBuffer bytes.Buffer
    	for {
    		v, err := cr.reader.ReadByte()
    		if err != nil {
    			if err == io.EOF {
    				return io.ErrUnexpectedEOF
    			}
    		}
    		if v != '\r' {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  10. cmd/erasure-decode.go

    		canDecode := p.canDecode(newBuf)
    		newBufLK.RUnlock()
    		if canDecode {
    			break
    		}
    		if readerIndex == len(p.readers) {
    			break
    		}
    		if !readTrigger {
    			continue
    		}
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    			rr := p.readers[i]
    			if rr == nil {
    				// Since reader is nil, trigger another read.
    				readTriggerCh <- true
    				return
    			}
    			bufIdx := p.readerToBuf[i]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
Back to top