- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for getAndx (0.36 sec)
-
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
when(mockAndxCommand.getCommand()).thenReturn(0x42); testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25, mockAndxCommand); assertEquals(mockAndxCommand, testBlock.getAndx()); assertEquals(mockAndxCommand, testBlock.getNext()); assertEquals(mockAndxCommand, testBlock.getNextResponse()); } @Test @DisplayName("Test constructor without andx command")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
this.andxCommand = (byte) andx.getCommand(); } } /** * Gets the chained AndX command * @return the andx */ public final ServerMessageBlock getAndx() { return this.andx; } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#getNext() */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
do { curReq.setResponse(curResp); final ServerMessageBlock nextReq = curReq.getAndx(); if (nextReq == null) { break; } final ServerMessageBlock nextResp = curResp.getAndx(); nextReq.setResponse(nextReq);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
assertEquals(0, alignedBytes); assertEquals(4, ndrBuffer.getIndex()); } @Test void testWriteOctetArray() { byte[] data = { 0x01, 0x02, 0x03, 0x04 }; ndrBuffer.writeOctetArray(data, 0, data.length); assertEquals(data.length, ndrBuffer.getIndex()); assertEquals(data.length, ndrBuffer.getLength());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcMessage.java
} @Override public void encode(final NdrBuffer buf) throws NdrException { final int start = buf.getIndex(); int alloc_hint_index = 0; buf.advance(16); /* momentarily skip header */ if (this.ptype == 0) { /* Request */ alloc_hint_index = buf.getIndex(); buf.enc_ndr_long(0); /* momentarily skip alloc hint */ buf.enc_ndr_short(0); /* context id */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
} @Override public void encode(final NdrBuffer buf) throws NdrException { final int start = buf.getIndex(); int alloc_hint_index = 0; buf.advance(16); /* momentarily skip header */ if (ptype == 0) { /* Request */ alloc_hint_index = buf.getIndex(); buf.enc_ndr_long(0); /* momentarily skip alloc hint */ buf.enc_ndr_short(0); /* context id */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
NdrShort ns = new NdrShort(original); buf.reset(); ns.encode(buf); // should not throw // After encoding, check how many bytes were used int bytesUsed = buf.getIndex(); // Should be 2 bytes for the short value (alignment may add padding) assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short"); // Reset index to read back buf.reset();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
for i, ver := range x.versions { if key == ver.header.VersionID { obj, err := x.getIdx(i) return i, obj, err } } return -1, nil, errFileVersionNotFound } func (x *xlMetaV2) getIdx(idx int) (ver *xlMetaV2Version, err error) { if idx < 0 || idx >= len(x.versions) { return nil, errFileNotFound } var dst xlMetaV2Version
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 65.6K bytes - Viewed (1) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
message.ptype = DcerpcConstants.RPC_PT_REQUEST; // 0 message.call_id = 1; message.opnumValue = 5; when(mockBuffer.getIndex()).thenReturn(0).thenReturn(16).thenReturn(20).thenReturn(24); lenient().doNothing().when(mockBuffer).advance(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
length = 0; deferred = this; } /** * Returns the current index position in the buffer. * * @return the current index */ public int getIndex() { return index; } /** * Sets the current index position in the buffer. * * @param index the new index position */ public void setIndex(final int index) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.4K bytes - Viewed (0)