- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,431 for byte1 (0.07 sec)
-
guava-tests/test/com/google/common/io/SourceSinkFactories.java
} @Override public byte[] getExpected(byte[] bytes) { if (initialBytes == null) { return checkNotNull(bytes); } else { byte[] result = new byte[initialBytes.length + bytes.length]; System.arraycopy(initialBytes, 0, result, 0, initialBytes.length); System.arraycopy(bytes, 0, result, initialBytes.length, bytes.length); return result; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
} static TestSuite suiteForBytes( ByteSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) { TestSuite suite = new TestSuite(name + " [" + desc + "]"); for (Method method : testMethods) { suite.addTest(new ByteSourceTester(factory, bytes, name, desc, method)); } if (slice && bytes.length > 0) { // test a random slice() of the ByteSource
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
public Hasher putBytes(byte[] bytes) { checkNotNull(bytes); update(bytes); return this; } @Override @CanIgnoreReturnValue public Hasher putBytes(byte[] bytes, int off, int len) { checkPositionIndexes(off, off + len, bytes.length); update(bytes, off, len); return this; } @Override @CanIgnoreReturnValue public Hasher putBytes(ByteBuffer bytes) { update(bytes);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
} /** Convenience method to compute a fingerprint on a full bytes array. */ private static long fingerprint(byte[] bytes) { return fingerprint(bytes, bytes.length); } /** Convenience method to compute a fingerprint on a subset of a byte array. */ private static long fingerprint(byte[] bytes, int length) { return HASH_FN.hashBytes(bytes, 0, length).asLong(); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
* byte order. * * @return the next four bytes of the input stream, interpreted as an {@code int} in little-endian * byte order * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue // to skip some bytes @Override public int readInt() throws IOException { byte b1 = readAndCheckByte(); byte b2 = readAndCheckByte(); byte b3 = readAndCheckByte();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
private byte[] bytes; public AppendableByteSource(byte[] initialBytes) { this.bytes = initialBytes.clone(); } @Override public InputStream openStream() { return new In(); } public void append(byte[] b) { byte[] newBytes = Arrays.copyOf(bytes, bytes.length + b.length);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 15.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
out.write(b); } @Override protected void update(byte[] b, int off, int len) { out.write(b, off, len); } byte[] bytes() { return out.toByteArray(); } void assertBytes(byte[] expected) { assertArrayEquals(expected, bytes()); } @Override public HashCode hash() { return HashCode.fromBytesNoCopy(bytes()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 3.8K bytes - Viewed (0) -
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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 29.7K bytes - Viewed (0) -
schema/serializer.go
fieldValue := reflect.New(field.FieldType) if dbValue != nil { var bytes []byte switch v := dbValue.(type) { case []byte: bytes = v case string: bytes = []byte(v) default: bytes, err = json.Marshal(v) if err != nil { return err } } if len(bytes) > 0 { err = json.Unmarshal(bytes, fieldValue.Interface()) } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 20 08:45:38 UTC 2024 - 4.6K bytes - Viewed (0) -
internal/s3select/message.go
return newErrorMessage([]byte(errorCode), []byte(errorMessage)) } type messageWriter struct { writer http.ResponseWriter getProgressFunc func() (int64, int64) bytesReturned int64 payloadBuffer []byte payloadBufferIndex int payloadCh chan *bytes.Buffer finBytesScanned, finBytesProcessed int64 errCh chan []byte doneCh chan struct{} }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 30 15:26:43 UTC 2022 - 15.2K bytes - Viewed (0)