Do not copy data twice in swInterfaceDump()
authorRobert Varga <[email protected]>
Mon, 1 Feb 2016 17:12:18 +0000 (18:12 +0100)
committerRobert Varga <[email protected]>
Mon, 1 Feb 2016 17:42:53 +0000 (18:42 +0100)
commit427ce225831af2959349c5e0332019433e8bf95f
tree7e3c4dd2d233a3774954af622e0aade0b0dafe2e
parent74574228b0f63a3c8fd373321ed25f4d24308df0
Do not copy data twice in swInterfaceDump()

Instead of performing getting the elements, memcpy()ing them and the
releasing, use GetByteArrayRegion().

Change-Id: I20ef181df214ac4fdcaff5a64b89ef4f879078f8
Signed-off-by: Robert Varga <[email protected]>
vpp-japi/japi/vppjni.c