- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 302 for padding (0.04 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
bufferIndex += 4; // dataDisplacement = 0 writeInt4(0, buffer, bufferIndex); bufferIndex += 4; // setupCount = 0 (1 byte + 1 padding byte) buffer[bufferIndex] = 0; buffer[bufferIndex + 1] = 0; // padding byte int bytesRead = response.readParameterWordsWireFormat(buffer, 0); assertEquals(37, bytesRead); // 3 reserved + 32 (8*4) + 2 for setupCount
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/archive/tar/strconv.go
if !validPAXRecord(k, v) { return "", ErrHeader } const padding = 3 // Extra padding for ' ', '=', and '\n' size := len(k) + len(v) + padding size += len(strconv.Itoa(size)) record := strconv.Itoa(size) + " " + k + "=" + v + "\n" // Final adjustment if adding size field increased the record size. if len(record) != size { size = len(record)
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
public void setFileId(final byte[] fileId) { this.fileId = fileId; } /** * Sets the padding for the read request * * @param padding * the padding to set */ public void setPadding(final byte padding) { this.padding = padding; } /** * Sets the read flags for the read operation * * @param readFlags
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 }; for (int pos : positions) { int padding = (int) pad8Method.invoke(req, pos); // Verify padding makes position 8-byte aligned assertEquals(0, (pos + padding) % 8); } } @Test @DisplayName("Should write bytes at different buffer offsets")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java
buf.readOctetArray(wideBytes, 0, byteCount); // Skip null terminator buf.dec_ndr_short(); // Skip padding int padding = (4 - ((byteCount + 2) % 4)) % 4; for (int i = 0; i < padding; i++) { buf.dec_ndr_small(); } return new String(wideBytes, StandardCharsets.UTF_16LE); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.6K bytes - Viewed (0)