MCPcopy Create free account
hub / github.com/google/gapid / write

Method write

core/java/jdwp/packet.go:56–64  ·  view source on GitHub ↗

JDWP uses the following structs for all communication: struct cmdPacket { length uint32 4 bytes id packetID 4 bytes flags packetFlags 1 bytes cmdSet cmdSet 1 bytes cmd uint8 1 bytes data []byte N bytes } struct reply { length uint32 4 bytes id pack

(w binary.Writer)

Source from the content-addressed store, hash-verified

54// }
55
56func (p cmdPacket) write(w binary.Writer) error {
57 w.Uint32(11 + uint32(len(p.data)))
58 w.Uint32(uint32(p.id))
59 w.Uint8(uint8(p.flags))
60 w.Uint8(uint8(p.cmdSet))
61 w.Uint8(uint8(p.cmdID))
62 w.Data(p.data)
63 return w.Error()
64}
65
66type replyPacket struct {
67 id packetID

Callers 1

reqMethod · 0.95

Calls 4

Uint32Method · 0.65
Uint8Method · 0.65
DataMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected