Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for sparseArray (0.15 sec)

  1. src/archive/tar/format.go

    func (h *headerUSTAR) prefix() []byte    { return h[345:][:155] }
    
    type sparseArray []byte
    
    func (s sparseArray) entry(i int) sparseElem { return sparseElem(s[i*24:]) }
    func (s sparseArray) isExtended() []byte     { return s[24*s.maxEntries():][:1] }
    func (s sparseArray) maxEntries() int        { return len(s) / 24 }
    
    type sparseElem []byte
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    			sph = alignSparseEntries(sph, hdr.Size)
    			spd = invertSparseEntries(sph, hdr.Size)
    
    			// Format the sparse map.
    			formatSPD := func(sp sparseDatas, sa sparseArray) sparseDatas {
    				for i := 0; len(sp) > 0 && i < sa.MaxEntries(); i++ {
    					f.formatNumeric(sa.Entry(i).Offset(), sp[0].Offset)
    					f.formatNumeric(sa.Entry(i).Length(), sp[0].Length)
    					sp = sp[1:]
    				}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		}
    		if ok := err == nil; ok != v.ok {
    			t.Errorf("test %d, parsePAX(): got %v, want %v", i, ok, v.ok)
    		}
    	}
    }
    
    func TestReadOldGNUSparseMap(t *testing.T) {
    	populateSparseMap := func(sa sparseArray, sps []string) []string {
    		for i := 0; len(sps) > 0 && i < sa.maxEntries(); i++ {
    			copy(sa.entry(i), sps[0])
    			sps = sps[1:]
    		}
    		if len(sps) > 0 {
    			copy(sa.isExtended(), "\x80")
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/GradleSubprojectProvider.kt

    }
    
    data class JsonBasedGradleSubprojectProvider(private val jsonFile: File) : GradleSubprojectProvider {
        @Suppress("UNCHECKED_CAST")
        override val subprojects = JSON.parseArray(jsonFile.readText()).map { toSubproject(it as Map<String, Any>) }
    
        private val nameToSubproject = subprojects.map { it.name to it }.toMap()
        override fun getSubprojectsForFunctionalTest(testConfig: TestCoverage) =
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 02 14:55:06 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

                        jsonParser.nextToken();
    
                        if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
                            // Handle array type
                            attributes.put(name, parseArray(jsonParser));
                        } else if (jsonParser.getCurrentToken() == JsonToken.START_OBJECT) {
                            // Handle nested object type
                            attributes.put(name, parseObject(jsonParser));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            if (Collection.class.isAssignableFrom(rawType)) {
                return parseCollection(parser, TypeArguments.get(toType.getSupertype(Collection.class), 0));
            }
            if (rawType.isArray()) {
                return parseArray(parser, TypeArguments.get(toType, 0));
            }
            return parseBean(parser, toType, rawType);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

        private val buckets: Map<TestCoverage, List<BuildTypeBucket>> by lazy {
            val uuidToTestCoverage = model.stages.flatMap { it.functionalTests }.associateBy { it.uuid }
            val testCoverageAndBuckets = JSON.parseArray(testBucketsJson.readText()) as JSONArray
            testCoverageAndBuckets.associate { testCoverageAndBucket ->
                testCoverageAndBucket as JSONObject
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 12 09:50:29 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

            }
        }
    
        private
        fun readPerformanceTestDurations(performanceTestDurationsJson: File): OperatingSystemToTestProjectPerformanceTestDurations {
            val durations = JSON.parseArray(performanceTestDurationsJson.readText(StandardCharsets.UTF_8))
            val pairs = durations.flatMap { it ->
                val scenarioDurations = it as JSONObject
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top