Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for invalidLength (0.26 sec)

  1. src/encoding/asn1/asn1.go

    	rawContentsType      = reflect.TypeFor[RawContent]()
    	bigIntType           = reflect.TypeFor[*big.Int]()
    )
    
    // invalidLength reports whether offset + length > sliceLength, or if the
    // addition would overflow.
    func invalidLength(offset, length, sliceLength int) bool {
    	return offset+length < offset || offset+length > sliceLength
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        internal fun setLengths(strings: List<String>) {
          if (strings.size != valueCount) {
            invalidLengths(strings)
          }
    
          try {
            for (i in strings.indices) {
              lengths[i] = strings[i].toLong()
            }
          } catch (_: NumberFormatException) {
            invalidLengths(strings)
          }
        }
    
        /** Append space-prefixed lengths to [writer]. */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top