Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for startOffset (0.06 seconds)

  1. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

        }
    
        void tokenizePartialBlock(final int startOffset, final int endOffset, final boolean afterSynonymProduced) {
            if (startOffset >= endOffset) {
                return;
            }
    
            int posInc = afterSynonymProduced ? 0 : 1;
            if (endOffset - startOffset < n) {
                queue.add(new MyToken(block.substring(startOffset, endOffset), startOffset, endOffset, posInc));
                return;
            }
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 15 06:51:20 GMT 2025
    - 17K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

                for (String word : words) {
                    if (!word.isEmpty()) {
                        int startOffset = text.indexOf(word, offset);
                        int endOffset = startOffset + word.length();
    
                        // Handle decimal numbers
                        if (word.matches("\\d+") && startOffset > 0 && text.charAt(startOffset - 1) == '.') {
                            continue;
                        }
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  3. docs/debugging/xl-meta/main.go

    	for shardsIdx, ok := range shardConfig {
    		if ok == 0 {
    			copy(splitData[shardsIdx][startOffset:], shards[shardsIdx])
    			for i := range shards[shardsIdx] {
    				if splitFilled[shardsIdx][startOffset+i] == 1 {
    					fmt.Println("Internal error: Found filled data at", startOffset+i)
    				}
    				splitFilled[shardsIdx][startOffset+i] = 1
    			}
    			reconstructed += len(shards[shardsIdx])
    		} else {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  4. cmd/object-api-utils_test.go

    	}
    	for i, test := range testCases {
    		startOffset, snappyStartOffset, firstPart, _, _ := getCompressedOffsets(test.objInfo, test.offset, nil)
    		if startOffset != test.startOffset {
    			t.Errorf("Test %d - expected startOffset %d but received %d",
    				i, test.startOffset, startOffset)
    		}
    		if snappyStartOffset != test.snappyStartOffset {
    			t.Errorf("Test %d - expected snappyOffset %d but received %d",
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

          public byte[] getExpected(byte[] bytes) {
            byte[] baseExpected = factory.getExpected(bytes);
            int startOffset = (int) min(off, baseExpected.length);
            int actualLen = (int) min(len, baseExpected.length - startOffset);
            return Arrays.copyOfRange(baseExpected, startOffset, startOffset + actualLen);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            int bytesWritten = transaction.writeParameterWordsWireFormat(dst, startOffset);
    
            // Verify the bytes written
            assertTrue(bytesWritten > 0);
    
            // Verify data is written at correct offset
            assertEquals(3, dst[startOffset]);
    
            // Verify total parameter count at correct offset
            assertEquals(500, SMBUtil.readInt4(dst, startOffset + 3));
    
            // Verify total data count at correct offset
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  7. cmd/object-api-interface.go

    func GetObject(ctx context.Context, api ObjectLayer, bucket, object string, startOffset int64, length int64, writer io.Writer, etag string, opts ObjectOptions) (err error) {
    	var header http.Header
    	if etag != "" {
    		header.Set("ETag", etag)
    	}
    	Range := &HTTPRangeSpec{Start: startOffset, End: startOffset + length}
    
    	reader, err := api.GetObjectNInfo(ctx, bucket, object, Range, header, opts)
    	if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  8. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

            )
        }
    
        private
        fun getLineNumber(declaration: KtDeclaration, ktFile: KtFile): Int {
            val startOffset = declaration.startOffsetSkippingComments
            return ktFile.viewProvider.document?.getLineNumber(startOffset)?.plus(1) ?: -1
        }
    
        private
        fun KtFile.forEachIncubatingDeclaration(block: (KtNamedDeclaration) -> Unit) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jun 02 09:57:54 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  9. cmd/erasure-coding.go

    }
    
    // ShardFileOffset - returns the effective offset where erasure reading begins.
    func (e *Erasure) ShardFileOffset(startOffset, length, totalLength int64) int64 {
    	shardSize := e.ShardSize()
    	shardFileSize := e.ShardFileSize(totalLength)
    	endShard := (startOffset + length) / e.blockSize
    	tillOffset := min(endShard*shardSize+shardSize, shardFileSize)
    	return tillOffset
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  10. cmd/erasure-object.go

    	if length < 0 {
    		length = fi.Size - startOffset
    	}
    
    	// Reply back invalid range if the input offset and length fall out of range.
    	if startOffset > fi.Size || startOffset+length > fi.Size {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Get start part index and offset.
    	partIndex, partOffset, err := fi.ObjectToPartOffset(ctx, startOffset)
    	if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:05:31 GMT 2025
    - 80.4K bytes
    - Click Count (0)
Back to Top