Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for boundary (0.18 sec)

  1. src/bytes/boundary_test.go

    package bytes_test
    
    import (
    	. "bytes"
    	"syscall"
    	"testing"
    )
    
    // This file tests the situation where byte operations are checking
    // data very near to a page boundary. We want to make sure those
    // operations do not read across the boundary and cause a page
    // fault where they shouldn't.
    
    // These tests run only on linux. The code being tested is
    // not OS-specific, so it does not need to be tested on all
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            return this.buf.length - this.index;
        }
    
    
        public byte[] getBuffer () {
            return this.buf;
        }
    
    
        public int align ( int boundary, byte value ) {
            int n = align(boundary);
            int i = n;
            while ( i > 0 ) {
                this.buf[ this.index - i ] = value;
                i--;
            }
            return n;
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.6K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/VersionRange.java

         */
        boolean contains(@Nonnull Version version);
    
        /**
         * Returns the upper boundary of this range, or {@code null} if none.
         */
        @Nullable
        Boundary getUpperBoundary();
    
        /**
         * Returns the lower boundary of this range, or {@code null} if none.
         */
        @Nullable
        Boundary getLowerBoundary();
    
        /**
         * Returns a string representation of this version range
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

      @get:JvmName("type") val type: MediaType,
      @get:JvmName("parts") val parts: List<Part>,
    ) : RequestBody() {
      private val contentType: MediaType = "$type; boundary=$boundary".toMediaType()
      private var contentLength = -1L
    
      @get:JvmName("boundary")
      val boundary: String
        get() = boundaryByteString.utf8()
    
      /** The number of parts in this multipart body. */
      @get:JvmName("size")
      val size: Int
        get() = parts.size
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

          source = response.source(),
          boundary =
            response.contentType()?.parameter("boundary")
              ?: throw ProtocolException("expected the Content-Type to have a boundary parameter"),
        )
    
        @Throws(IOException::class)
        fun nextPart(): Part? {
          check(!closed) { "closed" }
    
          if (noMoreParts) return null
    
          // Read a boundary, skipping the remainder of the preceding part as necessary.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      }
    
      @Test fun testParse() {
        val mediaType = parse("text/plain;boundary=foo;charset=utf-8")
        assertEquals("text", mediaType.type)
        assertEquals("plain", mediaType.subtype)
        assertEquals("UTF-8", mediaType.charsetName())
        assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString())
        assertEquals(mediaType, parse("text/plain;boundary=foo;charset=utf-8"))
        assertEquals(
          mediaType.hashCode(),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

      }
    
      @Test fun `skip whitespace after boundary`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |--simple boundary--
          """.trimMargin()
            .replace(Regex("(?m)simple boundary$"), "simple boundary \t \t")
            .replace("\n", "\r\n")
    
        val parts =
          MultipartReader(
            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

        val body =
          MultipartBody.Builder("123")
            .addPart("Hello, World!".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
          .isEqualTo("multipart/mixed; boundary=123")
        assertThat(body.parts.size).isEqualTo(1)
        assertThat(body.contentLength()).isEqualTo(33L)
        val buffer = Buffer()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        }
        public int getTailSpace() {
            return buf.length - index;
        }
        public byte[] getBuffer() {
            return buf;
        }
        public int align(int boundary, byte value) {
            int n = align(boundary);
            int i = n;
            while (i > 0) {
                buf[index - i] = value;
                i--;
            }
            return n;
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 6.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

                    final byte[] boundary = super.getBoundary(contentType);
                    checkBoundarySize(contentType, boundary);
                    return boundary;
                }
            };
        }
    
        protected void checkBoundarySize(final String contentType, final byte[] boundary) {
            final int boundarySize = boundary.length;
            final int limitSize = getBoundaryLimitSize();
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.4K bytes
    - Viewed (0)
Back to top