Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 577 for byte (0.13 sec)

  1. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        }
    
        @Override
        public byte[] getExpected(byte[] bytes) {
          if (initialBytes == null) {
            return checkNotNull(bytes);
          } else {
            byte[] result = new byte[initialBytes.length + bytes.length];
            System.arraycopy(initialBytes, 0, result, 0, initialBytes.length);
            System.arraycopy(bytes, 0, result, initialBytes.length, bytes.length);
            return result;
          }
        }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    	// 1: Echo
    	errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("1: server payload: ", len(payload), "bytes.")
    		return append([]byte{}, payload...), nil
    	}))
    	// 2: Return as error
    	errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("2: server payload: ", len(payload), "bytes.")
    		err := RemoteErr(payload)
    		return nil, &err
    	}))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    	fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte("O")))
    	fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte("Ami")))
    	fmt.Println(bytes.HasSuffix([]byte("Amigo"), []byte("")))
    	// Output:
    	// true
    	// false
    	// false
    	// true
    }
    
    func ExampleIndex() {
    	fmt.Println(bytes.Index([]byte("chicken"), []byte("ken")))
    	fmt.Println(bytes.Index([]byte("chicken"), []byte("dmr")))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/io/ByteSource.java

          ByteSource
      {
    
        final byte[] bytes;
        final int offset;
        final int length;
    
        ByteArrayByteSource(byte[] bytes) {
          this(bytes, 0, bytes.length);
        }
    
        // NOTE: Preconditions are enforced by slice, the only non-trivial caller.
        ByteArrayByteSource(byte[] bytes, int offset, int length) {
          this.bytes = bytes;
          this.offset = offset;
          this.length = length;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        List<byte[]> ordered =
            Arrays.asList(
                new byte[] {},
                new byte[] {LEAST},
                new byte[] {LEAST, LEAST},
                new byte[] {LEAST, (byte) 1},
                new byte[] {(byte) 1},
                new byte[] {(byte) 1, LEAST},
                new byte[] {GREATEST, GREATEST - (byte) 1},
                new byte[] {GREATEST, GREATEST},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        /**
         * 
         */
        public static final byte SMB_COM_QUERY_INFORMATION = (byte) 0x08;
    
        /**
         * 
         */
        public static final byte SMB_COM_SET_INFORMATION = (byte) 0x09;
    
        /**
         * 
         */
        public static final byte SMB_COM_WRITE = (byte) 0x0B;
    
        /**
         * 
         */
        public static final byte SMB_COM_CHECK_DIRECTORY = (byte) 0x10;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 32.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSourceTest.java

        private byte[] bytes;
    
        public AppendableByteSource(byte[] initialBytes) {
          this.bytes = initialBytes.clone();
        }
    
        @Override
        public InputStream openStream() {
          return new In();
        }
    
        public void append(byte[] b) {
          byte[] newBytes = Arrays.copyOf(bytes, bytes.length + b.length);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/DES.java

            (byte)22, (byte)18, (byte)11, (byte)3 , (byte)25, (byte) 7,
            (byte)15, (byte) 6, (byte)26, (byte)19, (byte)12, (byte) 1,
            (byte)40, (byte)51, (byte)30, (byte)36, (byte)46, (byte)54,
            (byte)29, (byte)39, (byte)50, (byte)44, (byte)32, (byte)47,
            (byte)43, (byte)48, (byte)38, (byte)55, (byte)33, (byte)52,
            (byte)45, (byte)41, (byte)49, (byte)35, (byte)28, (byte)31,
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 21.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                andxCommand = (byte)0xFF;
                andx = null;
    
                dst[start + ANDX_COMMAND_OFFSET] = (byte)0xFF;
                dst[start + ANDX_RESERVED_OFFSET] = (byte)0x00;
    //            dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
    //            dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
                dst[start + ANDX_OFFSET_OFFSET] = (byte)0xde;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.3K bytes
    - Viewed (0)
  10. internal/crypto/metadata_test.go

    			MetaIV: base64.StdEncoding.EncodeToString(append([]byte{1}, make([]byte, 31)...)), MetaAlgorithm: SealAlgorithm,
    			MetaSealedKeyS3: base64.StdEncoding.EncodeToString(append([]byte{1}, make([]byte, 63)...)), MetaKeyID: "key-1",
    			MetaDataEncryptionKey: base64.StdEncoding.EncodeToString(make([]byte, 48)),
    		},
    		DataKey: make([]byte, 48), KeyID: "key-1", SealedKey: SealedKey{Algorithm: SealAlgorithm, Key: [64]byte{1}, IV: [32]byte{1}},
    	}, // 10
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top