add util method to add a byte array termination marker at the limit of a ByteBuffer
add util method to add a byte array termination marker at the limit of a
ByteBuffer

Former-commit-id: 1c8a4f69e6dbcbf97944a16ba27e498ba0dcf4f5
latis-data/latis,latis-data/latis