Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 1,431 for byte1 (0.03 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt

     * limitations under the License.
     */
    package okhttp3.tls.internal.der
    
    /**
     * The first two bytes of each value is a header that includes its tag (field ID) and length.
     */
    internal data class DerHeader(
      /**
       * Namespace of the tag.
       *
       * This value is encoded in bits 7 and 8 of the first byte of each value.
       *
       * ```
       * 0b00xxxxxx Universal
       * 0b01xxxxxx Application
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. internal/ioutil/hardlimitreader.go

    // data returned to just N bytes. Each call to Read
    // updates N to reflect the new amount remaining.
    // Read returns EOF when N <= 0 or when the underlying R returns EOF.
    type HardLimitedReader struct {
    	R io.Reader // underlying reader
    	N int64     // max bytes remaining
    }
    
    func (l *HardLimitedReader) Read(p []byte) (n int, err error) {
    	if l.N < 0 {
    		return 0, ErrOverread
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. internal/grid/msg.go

    	// FlagPayloadIsErr can be used by individual ops to signify that
    	// The payload is a string error converted to byte slice.
    	FlagPayloadIsErr
    
    	// FlagPayloadIsZero means that payload is 0-length slice and not nil.
    	FlagPayloadIsZero
    
    	// FlagSubroute indicates that the message has subroute.
    	// Subroute will be 32 bytes long and added before any CRC.
    	FlagSubroute
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/SocketOutputStream.java

        }
    
        public synchronized void write( byte[] b, int off, int len ) throws IOException {
            if( len > 0xFFFF ) {
                throw new IOException( "write too large: " + len );
            } else if( off < 4 ) {
                throw new IOException( "NetBIOS socket output buffer requires 4 bytes available before off" );
            }
    
            off -= 4;
    
            b[off + 0] = (byte)SessionServicePacket.SESSION_MESSAGE;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmUtil.java

        };
    
    
        /*
         * Accepts key multiple of 7
         * Returns enc multiple of 8
         * Multiple is the same like: 21 byte key gives 24 byte result
         */
        static void E ( byte[] key, byte[] data, byte[] e ) throws ShortBufferException {
            byte[] key7 = new byte[7];
            byte[] e8 = new byte[8];
    
            for ( int i = 0; i < key.length / 7; i++ ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  6. cmd/bootstrap-peer-server_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalServerSystemConfig(t *testing.T) {
    	v := ServerSystemConfig{}
    	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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 24 21:36:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. cmd/bucket-metadata_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBucketMetadata(t *testing.T) {
    	v := BucketMetadata{}
    	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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type3Message.java

                hmac.update(this.ntResponse, 0, 16); // only first 16 bytes of ntResponse
                byte[] userSessionKey = hmac.digest();
    
                if ( getFlag(NTLMSSP_NEGOTIATE_KEY_EXCH) ) {
                    this.masterKey = new byte[16];
                    tc.getConfig().getRandom().nextBytes(this.masterKey);
    
                    byte[] encryptedKey = new byte[16];
                    Cipher rc4 = Crypto.getArcfour(userSessionKey);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 30.6K bytes
    - Viewed (0)
  9. internal/config/identity/openid/jwt_test.go

              "alg":"RS256",
              "kid":"2011-04-29"}
           ]
         }`
    
    	pubKeys := publicKeys{
    		RWMutex: &sync.RWMutex{},
    		pkMap:   map[string]interface{}{},
    	}
    	err := pubKeys.parseAndAdd(bytes.NewBuffer([]byte(jsonkey)))
    	if err != nil {
    		t.Fatal("Error loading pubkeys:", err)
    	}
    	if len(pubKeys.pkMap) != 1 {
    		t.Fatalf("Expected 1 keys, got %d", len(pubKeys.pkMap))
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/TestByteSink.java

        outputStreamOpened = true;
        bytes.reset(); // truncate
        return new Out();
      }
    
      private final class Out extends TestOutputStream {
    
        public Out() throws IOException {
          super(bytes, options);
        }
    
        @Override
        public void close() throws IOException {
          outputStreamClosed = true;
          super.close();
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1.8K bytes
    - Viewed (0)
Back to top