toReciver method

HLReciver toReciver(
  1. List<int> entry
)

Implementation

HLReciver toReciver(List<int> entry){
  final List<dynamic> ls = List.from(entry);
  ls.addAll(this);
  Pointer<UnsignedChar> p = malloc<UnsignedChar>(ls.length);
  for (var i = 0; i < ls.length; i++) {
    p[i] = ls[i] & 0xFF;
  }
   return HLReciver(len: length + 2, datas: p as Pointer<Void>, origin: ls);
}