- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for hexCode (0.08 sec)
-
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
int originalHexCode = 0xFF; mockName.hexCode = originalHexCode; // Create a spy to capture the state during writeQuestionSectionWireFormat NodeStatusRequest spyRequest = spy(nodeStatusRequest); doAnswer(invocation -> { // Verify hexCode is 0 during the call assertEquals(0x00, mockName.hexCode); return 40;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
void constructor_withAllParameters_shouldInitializeCorrectly() { Name name = new Name(mockConfig, "TestName", 0x20, "custom.scope"); assertEquals("TESTNAME", name.name); assertEquals(0x20, name.hexCode); assertEquals("custom.scope", name.scope); assertEquals(0, name.srcHashCode); } @Test void constructor_withLongName_shouldTruncateTo15Characters() {
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/smb1/netbios/NbtAddress.java
NbtAddress[] addrs; try { addrs = CLIENT.getNodeStatus(this); if (hostName.hexCode == 0x1D) { for (final NbtAddress addr : addrs) { if (addr.hostName.hexCode == 0x20) { return addr.hostName.name; } } return null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
} NbtAddress doNameQuery(final Name name, InetAddress svr) throws UnknownHostException { NbtAddress addr; if (name.hexCode == 0x1d && svr == null) { svr = this.baddr; // bit of a hack but saves a lookup } name.srcHashCode = svr != null ? svr.hashCode() : 0; addr = getCachedAddress(name); /*
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
// Setup queryAddress with unknown name Name unknownName = mock(Name.class); lenient().when(unknownName.isUnknown()).thenReturn(true); unknownName.hexCode = 0x20; unknownName.scope = null; mockQueryAddress.hostName = unknownName; response = new NodeStatusResponse(mockConfig, mockQueryAddress); // Prepare test data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
} break; case RESOLVER_WINS: case RESOLVER_BCAST: if (element == RESOLVER_WINS && name.name != NbtAddress.MASTER_BROWSER_NAME && name.hexCode != 0x1d) { request.addr = NbtAddress.getWINSAddress(); request.isBroadcast = false; } else { request.addr = baddr;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
return session; } private static final char[] HEX_CODE = "0123456789ABCDEF".toCharArray(); private static String printHexBinary(byte[] data) { StringBuilder r = new StringBuilder(data.length * 2); for (byte b : data) { r.append(HEX_CODE[(b >> 4) & 0xF]); r.append(HEX_CODE[(b & 0xF)]); } return r.toString(); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 13.8K bytes - Viewed (0)