Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 1,693 for byte2 (0.01 sec)

  1. src/test/java/jcifs/pac/PacSignatureTest.java

            writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5);
            byte[] checksum = new byte[16];
            for (int i = 0; i < checksum.length; i++) {
                checksum[i] = (byte) i;
            }
            baos.write(checksum);
            byte[] data = baos.toByteArray();
    
            // Create PacSignature
            PacSignature pacSignature = new PacSignature(data);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Add some dummy security data at offset 64 from start
            buffer[64] = (byte) 0x4E; // NTLMSSP signature start
            buffer[65] = (byte) 0x54;
            buffer[66] = (byte) 0x4C;
            buffer[67] = (byte) 0x4D;
            buffer[68] = (byte) 0x53;
            buffer[69] = (byte) 0x53;
            buffer[70] = (byte) 0x50;
            buffer[71] = (byte) 0x00;
    
            return buffer;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. cmd/tier-last-day-stats_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalDailyAllTierStats(t *testing.T) {
    	v := DailyAllTierStats{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

         * @param offset the offset in the data buffer
         * @param length the number of bytes to write
         */
        public void setData(final byte[] data, final int offset, final int length) {
            this.data = data;
            this.dataOffset = offset;
            this.dataLength = length;
        }
    
        /**
         * Sets the number of bytes remaining to be written in a sequence of write operations.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            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
                // Check bytes before encoded area
                for (int i = 0; i < startIndex; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SecureKeyManager.java

                // Wipe input
                Arrays.fill(input, (byte) 0);
            }
    
            return derived;
        }
    
        /**
         * Generate a random key
         *
         * @param length key length in bytes
         * @return random key bytes
         */
        public byte[] generateRandomKey(int length) {
            checkNotClosed();
    
            byte[] key = new byte[length];
            secureRandom.nextBytes(key);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/io/Smb2WriteResponse.java

         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/BufferCacheImpl.java

         */
        @Override
        public void releaseBuffer(final byte[] buf) {
            if (buf == null) {
                return;
            }
            // better safe than sorry: prevent leaks if there is some out of bound access
            Arrays.fill(buf, (byte) 0);
            synchronized (this.cache) {
                if (this.freeBuffers < this.cache.length) {
                    for (int i = 0; i < this.cache.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

            // Encode input parameters for WitnessHeartbeat
    
            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            byte[] dst = new byte[256];
            int offset = 10;
    
            // Mark the buffer before offset
            for (int i = 0; i < offset; i++) {
                dst[i] = (byte) 0xFF;
            }
    
            int bytesWritten = packet.writeTrailerWireFormat(dst, offset);
    
            assertTrue(bytesWritten > 0);
            // Check that bytes before offset are unchanged
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top