Packet.fromBytes constructor

Packet.fromBytes(
  1. List<int> bytes
)

Allow Packets to be created/copied from other bytes

Implementation

factory Packet.fromBytes(List<int> bytes){
  Packet p = Packet();
  p._bytes = bytes.sublist(0);
  return p;
}