Example #1
0
        /// <summary>
        /// Write the chunk header at the start of the chunk.
        ///
        /// Pass in the byte buffer returned by JdwpPacket.getPayload().
        /// </summary>
        internal static void finishChunkPacket(JdwpPacket packet, int type, int chunkLen)
        {
            ByteBuffer buf = packet.payload;

            buf.putInt(0x00, type);
            buf.putInt(0x04, chunkLen);

            packet.finishPacket(CHUNK_HEADER_LEN + chunkLen);
        }
Example #2
0
		/// <summary>
		/// Write the chunk header at the start of the chunk.
		/// 
		/// Pass in the byte buffer returned by JdwpPacket.getPayload().
		/// </summary>
		internal static void finishChunkPacket(JdwpPacket packet, int type, int chunkLen)
		{
			ByteBuffer buf = packet.payload;

			buf.putInt(0x00, type);
			buf.putInt(0x04, chunkLen);

			packet.finishPacket(CHUNK_HEADER_LEN + chunkLen);
		}