Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 859 for 1bytes (0.21 sec)

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

      }
    
      public void testMap_readWrite() throws IOException {
        // Test data
        int size = 1024;
        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
        random.nextBytes(expectedBytes);
    
        // Test
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                request.setPadding((byte) 4);
                request.setReadFlags((byte) 0x02);
    
                // Update file ID
                byte[] newFileId = new byte[16];
                Arrays.fill(newFileId, (byte) 0xEF);
                request.setFileId(newFileId);
    
                // Write and verify
                byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

          throws IOException {
        byte[] bytes = decoded.getBytes(UTF_8);
        try (InputStream decodingStream = encoding.decodingStream(new StringReader(encoded))) {
          for (int i = 0; i < bytes.length; i++) {
            assertThat(decodingStream.read()).isEqualTo(bytes[i] & 0xFF);
          }
          assertThat(decodingStream.read()).isEqualTo(-1);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/Encdec.java

         */
        public static int enc_uint32le(final int i, final byte[] dst, int di) {
            dst[di] = (byte) (i & 0xFF);
            di++;
            dst[di++] = (byte) (i >> 8 & 0xFF);
            dst[di++] = (byte) (i >> 16 & 0xFF);
            dst[di] = (byte) (i >> 24 & 0xFF);
            return 4;
        }
    
        /* Decode integers
         */
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/CountingOutputStream.java

    import java.io.OutputStream;
    
    /**
     * An OutputStream that counts the number of bytes written.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class CountingOutputStream extends FilterOutputStream {
    
      private long count;
    
      /**
       * Wraps another output stream, counting the number of bytes written.
       *
       * @param out the output stream to be wrapped
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            byte[] maxGuid = new byte[16];
            Arrays.fill(maxGuid, (byte) 0xFF);
    
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, maxGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            byte[] buffer = new byte[request.size()];
            request.encode(buffer, 0);
    
            // Verify max GUID
            byte[] extractedGuid = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/kerberos/KerberosToken.java

         * Constructs a KerberosToken from token bytes.
         *
         * @param token the token bytes
         * @throws PACDecodingException if token decoding fails
         */
        public KerberosToken(byte[] token) throws PACDecodingException {
            this(token, null);
        }
    
        /**
         * Constructs a KerberosToken from token bytes with decryption keys.
         *
         * @param token the token bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

      }
    
      @Override public void onMessage(WebSocket webSocket, String text) {
        System.out.println("MESSAGE: " + text);
      }
    
      @Override public void onMessage(WebSocket webSocket, ByteString bytes) {
        System.out.println("MESSAGE: " + bytes.hex());
      }
    
      @Override public void onClosing(WebSocket webSocket, int code, String reason) {
        webSocket.close(1000, null);
        System.out.println("CLOSE: " + code + " " + reason);
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Apr 04 11:40:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
        assertThrows(EOFException.class, () -> in.readUnsignedByte());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java

      }
    
      @SuppressWarnings("unchecked")
      static <T> T reserialize(T object) {
        try {
          ByteArrayOutputStream bytes = new ByteArrayOutputStream();
          ObjectOutputStream out = new ObjectOutputStream(bytes);
          out.writeObject(object);
          ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
          return (T) in.readObject();
        } catch (IOException | ClassNotFoundException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top