- Sort Score
- Result 10 results
- Languages All
Results 751 - 760 of 2,937 for rint (0.07 sec)
-
src/test/java/org/codelibs/core/io/CopyUtilTest.java
*/ @Test public void testIsToOs() throws Exception { final int result = copy(is, os); assertThat(result, is(srcBytes.length)); assertThat(os.toByteArray(), is(srcBytes)); } /** * @throws Exception */ @Test public void testReaderToWriter() throws Exception { final int result = copy(reader, writer); assertThat(result, is(srcString.length()));Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleInternal.java
*/ int recv(byte[] buf, int off, int length) throws IOException; /** * Send data to the pipe * * @param buf buffer containing data to send * @param off offset in the buffer * @param length length of data to send * @throws IOException if an I/O error occurs */ void send(byte[] buf, int off, int length) throws IOException; /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/CopyUtil.java
* @param out the output stream * @return the number of bytes copied */ protected static int copyInternal(final InputStream in, final OutputStream out) { try { final byte[] buf = new byte[DEFAULT_BUF_SIZE]; int len; int amount = 0; while ((len = in.read(buf)) != -1) { out.write(buf, 0, len); amount += len;Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 45.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java
* @return the lease flags */ public int getLeaseFlags() { return leaseFlags; } /** * Sets the lease flags for this request * @param leaseFlags the lease flags to set */ public void setLeaseFlags(int leaseFlags) { this.leaseFlags = leaseFlags; } @Override public int size() { // Context header: 16 bytesRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/Fingerprint2011.java
} @VisibleForTesting static long murmurHash64WithSeed(byte[] bytes, int offset, int length, long seed) { long mul = K3; int topBit = 0x7; int lengthAligned = length & ~topBit; int lengthRemainder = length & topBit; long hash = seed ^ (length * mul); for (int i = 0; i < lengthAligned; i += 8) { long loaded = load64(bytes, offset + i);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 6.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EchoRequest.java
*/ @Override public int size() { return size8(Smb2Constants.SMB2_HEADER_LENGTH + 4); } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int) */ @Override protected int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(4, dst, dstIndex);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
} private static void checkInitialCapacity( int concurrencyLevel, int initialCapacity, int segmentSize) { LocalCache<Object, Object> map = makeLocalCache( createCacheBuilder() .concurrencyLevel(concurrencyLevel) .initialCapacity(initialCapacity)); for (int i = 0; i < map.segments.length; i++) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 110.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
void testWriteBytesWireFormat() { response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2); byte[] dst = new byte[1024]; int dstIndex = 0; int result = response.writeBytesWireFormat(dst, dstIndex); assertEquals(0, result); } @Test @DisplayName("Test readBytesWireFormat with valid structure size")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
// Hash algorithm constants public static final int HASH_ALGO_SHA512 = PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512; // Default configuration private static final int DEFAULT_HASH_ALGORITHM = HASH_ALGO_SHA512; private static final int SALT_SIZE = 32; // 32 bytes as per SMB 3.1.1 spec private static final int HASH_SIZE_SHA512 = 64; // SHA-512 produces 64-byte hashesRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
tests/helper_test.go
"strings" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type Config struct { Account bool Pets int Toys int Company bool Manager bool Team int Languages int Friends int NamedPet bool Tools int } func GetUser(name string, config Config) *User { var ( birthday = time.Now().Round(time.Second) user = User{ Name: name,
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 8K bytes - Viewed (0)