public override PackageHeader CreatePackageHeader(byte[] data, int offset, int length) { //if (length - offset >= HeaderSize()) if (length >= HeaderSize()) { PackageHeader head = new PackageHeaderEx(); if (head.Unserial(data, offset)) { return(head); } } return(null); }
public PackageEx() { header = new PackageHeaderEx(); }