Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,319 for Byte (0.14 sec)

  1. src/main/java/jcifs/util/Encdec.java

        public static int enc_uint16be ( short s, byte[] dst, int di ) {
            dst[ di++ ] = (byte) ( ( s >> 8 ) & 0xFF );
            dst[ di ] = (byte) ( s & 0xFF );
            return 2;
        }
    
    
        public static int enc_uint32be ( int i, byte[] dst, int di ) {
            dst[ di++ ] = (byte) ( ( i >> 24 ) & 0xFF );
            dst[ di++ ] = (byte) ( ( i >> 16 ) & 0xFF );
            dst[ di++ ] = (byte) ( ( i >> 8 ) & 0xFF );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

        static void writeInt2( int val, byte[] dst, int dstIndex ) {
            dst[dstIndex++] = (byte)(( val >> 8 ) & 0xFF );
            dst[dstIndex] = (byte)( val & 0xFF );
        }
        static void writeInt4( int val, byte[] dst, int dstIndex ) {
            dst[dstIndex++] = (byte)(( val >> 24 ) & 0xFF );
            dst[dstIndex++] = (byte)(( val >> 16 ) & 0xFF );
            dst[dstIndex++] = (byte)(( val >> 8 ) & 0xFF );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

        out.writeBytes("\uAAAA\uAABB\uAACC");
    
        byte[] data = baos.toByteArray();
    
        /* Setup input streams */
        DataInput in = new DataInputStream(new ByteArrayInputStream(data));
    
        /* Read in various values NORMALLY */
        byte[] b = new byte[3];
        in.readFully(b);
        byte[] expected = {(byte) 0xAA, (byte) 0xBB, (byte) 0xCC};
        assertEquals(expected, b);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

            this.maxDataCount = 65536;
            this.maxSetupCount = (byte) 0x00;
        }
    
    
        @Override
        public int getPadding () {
            return 4;
        }
    
    
        @Override
        protected int writeSetupWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        @Override
        protected int writeParametersWireFormat ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java

          Byte[] suffix = {(byte) 86, (byte) 99};
          Byte[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Byte[] concat(Byte[] left, Byte[] right) {
        Byte[] result = new Byte[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponse.java

            return 0;
        }
    
    
        @Override
        protected int writeDataWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        @Override
        protected int readSetupWireFormat ( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Apr 13 17:05:22 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    }
    
    // ReadByte reads and returns a single byte.
    // If no byte is available, returns an error.
    func (b *Reader) ReadByte() (byte, error) {
    	b.lastRuneSize = -1
    	for b.r == b.w {
    		if b.err != nil {
    			return 0, b.readErr()
    		}
    		b.fill() // buffer is empty
    	}
    	c := b.buf[b.r]
    	b.r++
    	b.lastByte = int(c)
    	return c, nil
    }
    
    // UnreadByte unreads the last byte. Only the most recently read byte can be unread.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/HMACT64.java

        private static final int BLOCK_LENGTH = 64;
    
        private static final byte IPAD = (byte) 0x36;
    
        private static final byte OPAD = (byte) 0x5c;
    
        private MessageDigest md5;
    
        private byte[] ipad = new byte[BLOCK_LENGTH];
    
        private byte[] opad = new byte[BLOCK_LENGTH];
    
        /**
         * Creates an HMACT64 instance which uses the given secret key material.
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java

        private static final byte[] SIGNCONTEXT_300 = toCBytes("SmbSign");
        private static final byte[] SIGNLABEL_300 = toCBytes("SMB2AESCMAC");
        private static final byte[] SIGNLABEL_311 = toCBytes("SMBSigningKey");
    
        private static final byte[] APPCONTEXT_300 = toCBytes("SmbRpc");
        private static final byte[] APPLABEL_300 = toCBytes("SMB2APP");
        private static final byte[] APPLABEL_311 = toCBytes("SMBAppKey");
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.7K bytes
    - Viewed (0)
  10. internal/grid/grid_test.go

    	local := grid.Managers[0]
    
    	// 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)
    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)
Back to top