예제 #1
0
		/// <summary>
		/// Return the slice of the JDWP packet buffer that holds just the
		/// chunk data.
		/// </summary>
		internal static ByteBuffer getChunkDataBuf(ByteBuffer jdwpBuf)
		{
			ByteBuffer slice;

			Debug.Assert(jdwpBuf.position == 0);

			jdwpBuf.position= JdwpPacket.JDWP_HEADER_LEN + CHUNK_HEADER_LEN;
			slice = jdwpBuf.slice();
			slice.order = CHUNK_ORDER;
			jdwpBuf.position = 0;

			return slice;
		}