Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,006 for Bytes (0.14 sec)

  1. android/guava/src/com/google/common/primitives/Bytes.java

    /**
     * Static utility methods pertaining to {@code byte} primitives, that are not already found in
     * either {@link Byte} or {@link Arrays}, <i>and interpret bytes as neither signed nor unsigned</i>.
     * The methods which specifically treat bytes as signed or unsigned are found in {@link SignedBytes}
     * and {@link UnsignedBytes}.
     *
     * <p>See the Guava User Guide article on <a
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/bytes/bytes.go

    // license that can be found in the LICENSE file.
    
    // Package bytes implements functions for the manipulation of byte slices.
    // It is analogous to the facilities of the [strings] package.
    package bytes
    
    import (
    	"internal/bytealg"
    	"unicode"
    	"unicode/utf8"
    )
    
    // Equal reports whether a and b
    // are the same length and contain the same bytes.
    // A nil argument is equivalent to an empty slice.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"internal/testenv"
    	"math"
    	"math/rand"
    	"reflect"
    	"strings"
    	"testing"
    	"unicode"
    	"unicode/utf8"
    	"unsafe"
    )
    
    func eq(a, b []string) bool {
    	if len(a) != len(b) {
    		return false
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. src/bytes/example_test.go

    func ExampleBuffer_Grow() {
    	var b bytes.Buffer
    	b.Grow(64)
    	bb := b.Bytes()
    	b.Write([]byte("64 bytes or fewer"))
    	fmt.Printf("%q", bb[:b.Len()])
    	// Output: "64 bytes or fewer"
    }
    
    func ExampleBuffer_Len() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%d", b.Len())
    	// Output: 5
    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  5. guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.indexOf(EMPTY, ARRAY234)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 2, (byte) 3})).isEqualTo(0);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. cmd/httprange_test.go

    		errExpected bool
    	}{
    		{"bytes=0-", false},
    		{"bytes=1-", false},
    
    		{"bytes=0-9", false},
    		{"bytes=1-10", false},
    		{"bytes=1-1", false},
    		{"bytes=2-5", false},
    
    		{"bytes=-5", false},
    		{"bytes=-1", false},
    		{"bytes=-1000", false},
    		{"bytes=", true},
    		{"bytes= ", true},
    		{"byte=", true},
    		{"bytes=A-B", true},
    		{"bytes=1-B", true},
    		{"bytes=B-1", true},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Mar 08 21:58:55 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/FarmHashFingerprint64.java

        long b = load64(bytes, offset + 8);
        long c = load64(bytes, offset + length - 8) * mul;
        long d = load64(bytes, offset + length - 16) * K2;
        long y = rotateRight(a + b, 43) + rotateRight(c, 30) + d;
        long z = hashLength16(y, a + rotateRight(b + K2, 18) + c, mul);
        long e = load64(bytes, offset + 16) * mul;
        long f = load64(bytes, offset + 24);
        long g = (y + load64(bytes, offset + length - 32)) * mul;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 01 22:39:48 GMT 2022
    - 7.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.indexOf(EMPTY, ARRAY234)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 2, (byte) 3})).isEqualTo(0);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteStreams.java

          }
          remaining -= read;
        }
    
        // bytes is now full
        int b = in.read();
        if (b == -1) {
          return bytes;
        }
    
        // the stream was longer, so read the rest normally
        Queue<byte[]> bufs = new ArrayDeque<>(TO_BYTE_ARRAY_DEQUE_SIZE + 2);
        bufs.add(bytes);
        bufs.add(new byte[] {(byte) b});
        return toByteArrayInternal(in, bufs, bytes.length + 1);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  10. internal/grid/types.go

    // remainder of bytes.
    func (b *Bytes) UnmarshalMsg(bytes []byte) ([]byte, error) {
    	if b == nil {
    		return bytes, errors.New("Bytes: UnmarshalMsg on nil pointer")
    	}
    	if bytes, err := msgp.ReadNilBytes(bytes); err == nil {
    		if *b != nil {
    			PutByteBuffer(*b)
    		}
    		*b = nil
    		return bytes, nil
    	}
    	val, bytes, err := msgp.ReadBytesZC(bytes)
    	if err != nil {
    		return bytes, err
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top