Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 209 for offcut (0.18 sec)

  1. cmd/erasure-decode_test.go

    	}
    
    	// To generate random offset/length.
    	r := rand.New(rand.NewSource(UTCNow().UnixNano()))
    
    	buf := &bytes.Buffer{}
    
    	// Verify erasure.Decode() for random offsets and lengths.
    	for i := 0; i < iterations; i++ {
    		offset := r.Int63n(length)
    		readLen := r.Int63n(length - offset)
    
    		expected := data[offset : offset+readLen]
    
    		// Get the checksums of the current part.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. cmd/erasure-utils.go

    	for _, block := range enBlocks[:dataBlocks] {
    		// Skip blocks until we have reached our offset.
    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    		// Skip until offset.
    		block = block[offset:]
    
    		// Reset the offset for next iteration to read everything
    		// from subsequent blocks.
    		offset = 0
    
    		// We have written all the blocks, write the last remaining block.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                this.andx = null;
    
                dst[ start + ANDX_COMMAND_OFFSET ] = (byte) 0xFF;
                dst[ start + ANDX_RESERVED_OFFSET ] = (byte) 0x00;
                // dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
                // dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
                dst[ start + ANDX_OFFSET_OFFSET ] = (byte) 0xde;
                dst[ start + ANDX_OFFSET_OFFSET + 1 ] = (byte) 0xde;
    
                // andx not used; return
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
  4. src/archive/zip/struct.go

    // timeZone returns a *time.Location based on the provided offset.
    // If the offset is non-sensible, then this uses an offset of zero.
    func timeZone(offset time.Duration) *time.Location {
    	const (
    		minOffset   = -12 * time.Hour  // E.g., Baker island at -12:00
    		maxOffset   = +14 * time.Hour  // E.g., Line island at +14:00
    		offsetAlias = 15 * time.Minute // E.g., Nepal at +5:45
    	)
    	offset = offset.Round(offsetAlias)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  5. cmd/erasure-encode_test.go

    	{dataBlocks: 4, onDisks: 8, offDisks: 2, blocksize: int64(blockSizeV2), data: oneMiByte, offset: 2, algorithm: DefaultBitrotAlgorithm, shouldFail: false, shouldFailQuorum: false},                 // 2
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-RequestBodyCommon.kt

      contentType: MediaType?,
      offset: Int,
      byteCount: Int,
    ): RequestBody {
      checkOffsetAndCount(size.toLong(), offset.toLong(), byteCount.toLong())
      return object : RequestBody() {
        override fun contentType() = contentType
    
        override fun contentLength() = byteCount.toLong()
    
        override fun writeTo(sink: BufferedSink) {
          sink.write(this@commonToRequestBody, offset, byteCount)
        }
      }
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  7. cmd/erasure-decode.go

    	if offset < 0 || length < 0 {
    		return -1, errInvalidArgument
    	}
    	if offset+length > totalLength {
    		return -1, errInvalidArgument
    	}
    
    	if length == 0 {
    		return 0, nil
    	}
    
    	reader := newParallelReader(readers, e, offset, totalLength)
    	if len(prefer) == len(readers) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  8. chainable_api.go

    	return
    }
    
    // Offset specify the number of records to skip before starting to return the records
    //
    // Offset conditions can be cancelled by using `Offset(-1)`.
    //
    //	// select the third user
    //	db.Offset(2).First(&user)
    //	// select the first user by cancelling an earlier chained offset
    //	db.Offset(5).Offset(-1).First(&user)
    func (db *DB) Offset(offset int) (tx *DB) {
    	tx = db.getInstance()
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  9. cmd/erasure-metadata.go

    }
    
    // ObjectToPartOffset - translate offset of an object to offset of its individual part.
    func (fi FileInfo) ObjectToPartOffset(ctx context.Context, offset int64) (partIndex int, partOffset int64, err error) {
    	if offset == 0 {
    		// Special case - if offset is 0, then partIndex and partOffset are always 0.
    		return 0, 0, nil
    	}
    	partOffset = offset
    	// Seek until object offset maps to a particular part offset.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

          @Override
          public long getLongLittleEndian(byte[] source, int offset) {
            return Longs.fromBytes(
                source[offset + 7],
                source[offset + 6],
                source[offset + 5],
                source[offset + 4],
                source[offset + 3],
                source[offset + 2],
                source[offset + 1],
                source[offset]);
          }
    
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
Back to top