public int SerializeToBytes(ref byte[] ret, int offset) { if (ret.Length - offset < Len) { return(-1); } int used = 0; int u = head.SerializeToBytes(ref ret, offset + used); if (-1 == u) { return(-1); } used += u; u = SerializeHelper.SerializeBytes(ref ret, offset + used, s8SrcPath, 0, SiMacroDef.SI_FILEPATH_MAX_LEN); if (-1 == u) { return(-1); } used += u; return(used); }
public int SerializeToBytes(ref byte[] ret, int offset) { //throw new NotImplementedException(); int used = 0; used += head.SerializeToBytes(ref ret, used + offset); return(used); }
public int SerializeToBytes(ref byte[] ret, int offset) { if (ret.Length - offset < Len) { return(-1); } int used = 0; used += head.SerializeToBytes(ref ret, offset + used); used += SerializeHelper.SerializeBytes(ref ret, offset + used, s8DevName, 0, SiMacroDef.SI_FILEPATH_MAX_LEN); return(used); }