Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 271 for positions (0.11 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Set SMB 3.1.1 dialect and 1 context
            SMBUtil.writeInt2(0x0311, buffer, 4);
            SMBUtil.writeInt2(1, buffer, 6);
            SMBUtil.writeInt4(100, buffer, 60); // Context offset
    
            // At context position, set data that extends beyond buffer
            int contextPos = 164; // 100 + 64 (header start)
            if (contextPos + 8 < buffer.length) {
                SMBUtil.writeInt2(1, buffer, contextPos); // Context type
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/request-files.md

    * `write(data)`: Escribe `data` (`str` o `bytes`) en el archivo.
    * `read(size)`: Lee `size` (`int`) bytes/caracteres del archivo.
    * `seek(offset)`: Va a la posición de bytes `offset` (`int`) en el archivo.
        * Por ejemplo, `await myfile.seek(0)` iría al inicio del archivo.
        * Esto es especialmente útil si ejecutas `await myfile.read()` una vez y luego necesitas leer el contenido nuevamente.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          stackWithLastReturnedElementAtTop.pop();
          stackWithLastReturnedElementAtTop.push(e);
        }
    
        /**
         * Moves the given element from its current position in {@link #nextElements} to the top of the
         * stack so that it is returned by the next call to {@link Iterator#next()}. If the element is
         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                testBlock.setUseUnicode(true);
                // Test reading Unicode string with alignment
    
                byte[] buffer = new byte[100];
                // Write "Test" in UTF-16LE directly at position 2 (even offset)
                System.arraycopy(Strings.getUNIBytes("Test\0"), 0, buffer, 2, 10);
    
                String result = testBlock.readString(buffer, 2);
    
                assertEquals("Test", result);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                // Given - buffer with padding before actual data
                ByteBuffer buffer = ByteBuffer.allocate(34);
                buffer.order(ByteOrder.LITTLE_ENDIAN);
                buffer.position(10); // Add 10 bytes of padding
                buffer.putLong(2048L);
                buffer.putLong(1024L);
                buffer.putInt(4);
                buffer.putInt(4096);
                byte[] bufferArray = buffer.array();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertEquals(5, skipped);
            assertEquals(5L, raf.getFilePointer());
            assertEquals(0, raf.skipBytes(-3));
        }
    
        @Test
        @DisplayName("seek() and getFilePointer(): set and get position")
        void seek_and_getFilePointer() throws Exception {
            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            raf.seek(123L);
            assertEquals(123L, raf.getFilePointer());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. CREDITS

    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Mar 13 05:29:51 UTC 2025
    - 1.8M bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

            byte[] nameBytes = serverName.getBytes(StandardCharsets.US_ASCII);
            System.arraycopy(nameBytes, 0, buffer, bufferIndex, 15);
            buffer[15] = 0; // null terminator at position 15
            bufferIndex += 16;
    
            // Write version
            buffer[bufferIndex++] = 6;
            buffer[bufferIndex++] = 1;
    
            // Write type
            SMBUtil.writeInt4(0, buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            int written = request.writeBytesWireFormat(buffer, offset);
    
            assertEquals(24, written);
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify file ID at correct position
            byte[] copiedFileId = new byte[16];
            System.arraycopy(buffer, offset + 8, copiedFileId, 0, 16);
            assertArrayEquals(testFileId, copiedFileId);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * This method always compares the full length of both arrays, regardless of when
         * differences are found, making the execution time independent of the position
         * of differing characters.
         *
         * @param a first char array to compare
         * @param b second char array to compare
         * @return true if arrays are equal, false otherwise
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top