Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 17 jdk.jdi.jmod - JDI Tool
JDK 17 jdk.jdi.jmod is the JMOD file for JDK 17 JDI (Java Debug Interface) tool.
JDK 17 JDI tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jdi.jmod.
JDK 17 JDI tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JDI tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jdi.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdi/Packet.java
/*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.jdi;
import java.io.IOException;
public class Packet extends Object {
public final static short NoFlags = 0x0;
public final static short Reply = 0x80;
public final static short ReplyNoError = 0x0;
static int uID = 1;
final static byte[] nullData = new byte[0];
// Note! flags, cmdSet, and cmd are all byte values.
// We represent them as shorts to make them easier
// to work with.
int id;
short flags;
short cmdSet;
short cmd;
short errorCode;
byte[] data;
volatile boolean replied = false;
/**
* Return byte representation of the packet
*/
public byte[] toByteArray() {
int len = data.length + 11;
byte b[] = new byte[len];
b[0] = (byte)((len >>> 24) & 0xff);
b[1] = (byte)((len >>> 16) & 0xff);
b[2] = (byte)((len >>> 8) & 0xff);
b[3] = (byte)((len >>> 0) & 0xff);
b[4] = (byte)((id >>> 24) & 0xff);
b[5] = (byte)((id >>> 16) & 0xff);
b[6] = (byte)((id >>> 8) & 0xff);
b[7] = (byte)((id >>> 0) & 0xff);
b[8] = (byte)flags;
if ((flags & Packet.Reply) == 0) {
b[9] = (byte)cmdSet;
b[10] = (byte)cmd;
} else {
b[9] = (byte)((errorCode >>> 8) & 0xff);
b[10] = (byte)((errorCode >>> 0) & 0xff);
}
if (data.length > 0) {
System.arraycopy(data, 0, b, 11, data.length);
}
return b;
}
/**
* Create a packet from its byte array representation
*/
public static Packet fromByteArray(byte b[]) throws IOException {
if (b.length < 11) {
throw new IOException("packet is insufficient size");
}
int b0 = b[0] & 0xff;
int b1 = b[1] & 0xff;
int b2 = b[2] & 0xff;
int b3 = b[3] & 0xff;
int len = ((b0 << 24) | (b1 << 16) | (b2 << 8) | (b3 << 0));
if (len != b.length) {
throw new IOException("length size mis-match");
}
int b4 = b[4] & 0xff;
int b5 = b[5] & 0xff;
int b6 = b[6] & 0xff;
int b7 = b[7] & 0xff;
Packet p = new Packet();
p.id = ((b4 << 24) | (b5 << 16) | (b6 << 8) | (b7 << 0));
p.flags = (short)(b[8] & 0xff);
if ((p.flags & Packet.Reply) == 0) {
p.cmdSet = (short)(b[9] & 0xff);
p.cmd = (short)(b[10] & 0xff);
} else {
short b9 = (short)(b[9] & 0xff);
short b10 = (short)(b[10] & 0xff);
p.errorCode = (short)((b9 << 8) + (b10 << 0));
}
p.data = new byte[b.length - 11];
System.arraycopy(b, 11, p.data, 0, p.data.length);
return p;
}
Packet() {
id = uniqID();
flags = NoFlags;
data = nullData;
}
static synchronized private int uniqID() {
/*
* JDWP spec does not require this id to be sequential and
* increasing, but our implementation does. See
* VirtualMachine.notifySuspend, for example.
*/
return uID++;
}
}
⏎ com/sun/tools/jdi/Packet.java
Or download all of them as a single archive file:
File name: jdk.jdi-17.0.5-src.zip File size: 476972 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jdwp.agent.jmod - JDWP Agent Module
2023-04-17, ≈85🔥, 0💬
Popular Posts:
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...