Add Copy method to NetworkBuffer

Copy values from the NetworkBuffer, taking into account network byte
order to host byte order.
Add methods to serialize and deserialize array of ints to NetworkBuffer