Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Reconstruct (0.06 sec)

  1. cmd/erasure_test.go

    			if test.reconstructParity {
    				for j := range decoded {
    					if decoded[j] == nil {
    						t.Errorf("Test %d: failed to reconstruct shard %d", i, j)
    					}
    				}
    			} else {
    				for j := range decoded[:test.dataBlocks] {
    					if decoded[j] == nil {
    						t.Errorf("Test %d: failed to reconstruct data shard %d", i, j)
    					}
    				}
    			}
    
    			decodedData := new(bytes.Buffer)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. docs/erasure/README.md

    ## What is Erasure Code?
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. cmd/erasure-coding.go

    // It returns an error if the decoding failed.
    func (e *Erasure) DecodeDataAndParityBlocks(ctx context.Context, data [][]byte) error {
    	return e.encoder().Reconstruct(data)
    }
    
    // ShardSize - returns actual shared size from erasure blockSize.
    func (e *Erasure) ShardSize() int64 {
    	return ceilFrac(e.blockSize, int64(e.dataBlocks))
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. cmd/erasure-decode.go

    			return -1, err
    		}
    
    		bytesWritten += n
    	}
    
    	if bytesWritten != length {
    		return bytesWritten, errLessData
    	}
    
    	return bytesWritten, derr
    }
    
    // Heal reads from readers, reconstruct shards and writes the data to the writers.
    func (e Erasure) Heal(ctx context.Context, writers []io.Writer, readers []io.ReaderAt, totalLength int64, prefer []bool) (derr error) {
    	if len(writers) != e.parityBlocks+e.dataBlocks {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            mockedStaticAuthData.when(() -> KerberosAuthData.parse(anyInt(), any(byte[].class), any(Map.class)))
                    .thenReturn(Collections.singletonList(mockAuthData));
    
            // Construct a valid ASN.1 sequence for KerberosRelevantAuthData
            ASN1EncodableVector authVector = new ASN1EncodableVector();
            ASN1EncodableVector elementVector = new ASN1EncodableVector();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/GraphConstants.java

          "Nodes %s and %s are already connected by a different edge. To construct a graph "
              + "that allows parallel edges, call allowsParallelEdges(true) on the Builder.";
      static final String SELF_LOOPS_NOT_ALLOWED =
          "Cannot add self-loop edge on node %s, as self-loops are not allowed. To construct a graph "
              + "that allows self-loops, call allowsSelfLoops(true) on the Builder.";
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/AbstractGraphBuilder.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import com.google.common.base.Optional;
    
    /**
     * A base class for builders that construct graphs with user-defined properties.
     *
     * @author James Sexton
     */
    abstract class AbstractGraphBuilder<N> {
      final boolean directed;
      boolean allowsSelfLoops = false;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/main/webapp/js/clipboard.min.js

    on(t,e){return t.__proto__=e,t})(t,e)}function h(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=v(n);return t=o?(t=v(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this,!(t=t)||"object"!==p(t)&&"function"!=typeof t?function(t){if(void...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Jan 12 06:14:02 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    /**
     * Unit tests for {@link TransWaitNamedPipeResponse}.
     *
     * The implementation contains only trivial methods that return {@code 0}
     * or construct a string representation.  The tests focus on:
     *
     * <ul>
     *   <li>happy‑path behaviour</li>
     *   <li>boundary arguments (e.g., negative indices, large values)</li>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

        }
    
        @Test
        void messageAndCauseConstructor_setsMessageAndCause_withoutInteractingWithCause() {
            // Arrange - mock cause to verify no interactions are needed to construct
            Throwable cause = Mockito.mock(Throwable.class);
            String message = "forced downgrade detected";
    
            // Act
            SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(message, cause);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top