- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 259 for Padding (0.07 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt
length: Int, flags: Int, padding: Int, ): Int { var result = length if (flags and FLAG_PADDED != 0) result-- // Account for reading the padding length. if (padding > result) { throw IOException("PROTOCOL_ERROR padding $padding > remaining length $result") } result -= padding return result } }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 19.8K bytes - Viewed (0) -
guava/src/com/google/common/io/BaseEncoding.java
* characters as specified by <a href="http://tools.ietf.org/html/rfc4648#section-3.2">RFC 4648 * section 3.2</a>, Padding of Encoded Data. */ public abstract BaseEncoding omitPadding(); /** * Returns an encoding that behaves equivalently to this encoding, but uses an alternate character * for padding. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Oct 06 14:51:47 UTC 2025 - 41.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
} @ParameterizedTest @DisplayName("Should handle various padding values") @ValueSource(ints = { 0, 1, 15, 127, 255 }) void testVariousPadding(int padding) { assertDoesNotThrow(() -> request.setPadding((byte) padding)); } @ParameterizedTest @DisplayName("Should handle various read lengths")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0); // Should write FileInformation data + 6 bytes padding assertEquals(46, written); // 40 + 6 // Verify encode was called verify(mockFileInfo).encode(buffer, 0); // Check that 6 bytes of padding are zeros for (int i = 40; i < 46; i++) { assertEquals(0, buffer[i]); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
void testGetType() throws SMBProtocolDecodingException { // Prepare buffer with specific type value testBuffer[0] = 0x01; // revision testBuffer[1] = 0x00; // padding testBuffer[2] = 0x04; // type low byte testBuffer[3] = (byte) 0x80; // type high byte (0x8004) // Set all offsets to 0 for (int i = 4; i < 20; i++) { testBuffer[i] = 0;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* @return an array containing the values of {@code array}, with guaranteed minimum length {@code * minLength} */ public static boolean[] ensureCapacity(boolean[] array, int minLength, int padding) { checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); checkArgument(padding >= 0, "Invalid padding: %s", padding);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 25 15:01:23 UTC 2025 - 20.6K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* @return an array containing the values of {@code array}, with guaranteed minimum length {@code * minLength} */ public static boolean[] ensureCapacity(boolean[] array, int minLength, int padding) { checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); checkArgument(padding >= 0, "Invalid padding: %s", padding);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Sep 25 15:01:23 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
val paddingLength = 254 val padding = ByteArray(paddingLength) Arrays.fill(padding, 0.toByte()) writeMedium(frame, dataLength + paddingLength + 1) frame.writeByte(Http2.TYPE_DATA) frame.writeByte(FLAG_PADDED) frame.writeInt(expectedStreamId and 0x7fffffff) frame.writeByte(paddingLength) frame.write(expectedData) frame.write(padding)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 28.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
// DACL at offset 60 buffer.position(60); buffer.put((byte) 0x02); // AclRevision buffer.put((byte) 0x00); // Padding buffer.putShort((short) 8); // AclSize buffer.putShort((short) 0); // AceCount buffer.putShort((short) 0); // Padding return buffer.array(); } /** * Helper method to set error code using reflection */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0)