avoid deprecated ByteBuffer::getArray()

use identical, but not overloaded, getBuffer()
This commit is contained in:
Michael Davidsaver
2019-05-18 18:01:49 -07:00
parent bd7ae12143
commit 32ba2f32d0
6 changed files with 14 additions and 14 deletions

View File

@ -132,7 +132,7 @@ void test_encodeAsIPv6Address()
encodeAsIPv6Address(buff.get(), &addr);
testOk1(static_cast<size_t>(16) == buff->getPosition());
testOk1(strncmp(buff->getArray(), src, 16) == 0);
testOk1(strncmp(buff->getBuffer(), src, 16) == 0);
}
void test_isMulticastAddress()