Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testBytes (0.04 sec)

  1. src/bytes/buffer_test.go

    var testString string // test data for write tests
    var testBytes []byte  // test data; same as testString but as a slice.
    
    type negativeReader struct{}
    
    func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
    
    func init() {
    	testBytes = make([]byte, N)
    	for i := 0; i < N; i++ {
    		testBytes[i] = 'a' + byte(i%26)
    	}
    	testString = string(testBytes)
    }
    
    // Verify that contents of buf match the string s.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 16:13:04 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/Utf8Test.java

      @GwtIncompatible // java.nio.charset.Charset
      public void testIsWellFormed_1Byte() {
        testBytes(1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT);
      }
    
      /** Tests that round tripping of all two byte permutations work. */
      @GwtIncompatible // java.nio.charset.Charset
      public void testIsWellFormed_2Bytes() {
        testBytes(2, EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                byte[] buffer = new byte[100];
                // Create "Test\0" in UTF-16LE with proper null terminator
                byte[] testBytes = Strings.getUNIBytes("Test");
                System.arraycopy(testBytes, 0, buffer, 0, 8);
                buffer[8] = 0; // null terminator low byte
                buffer[9] = 0; // null terminator high byte
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            @Test
            @DisplayName("Should not modify buffer beyond encoded area")
            void testEncodeDoesNotModifyBeyondArea() {
                // Given
                byte testByte = (byte) 0xFF;
                java.util.Arrays.fill(buffer, testByte);
                SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096);
    
                // When
                chunk.encode(buffer, startIndex);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

            }
    
            @Test
            @DisplayName("Should not modify buffer beyond encoded area")
            void testEncodeDoesNotModifyBeyondArea() {
                // Given
                byte testByte = (byte) 0xEE;
                Arrays.fill(buffer, testByte);
                SrvCopychunk chunk = new SrvCopychunk(1, 2, 3);
                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk);
                int expectedSize = HEADER_SIZE + CHUNK_SIZE;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
Back to top