public override int GetObjectEncodeSize(object value, bool arrayEncoding) { if (!arrayEncoding) { return(ListEncoding.GetEncodeSize((IList)value)); } return(8 + ListEncoding.GetValueSize((IList)value)); }
public override int GetObjectEncodeSize(object value, bool arrayEncoding) { if (arrayEncoding) { return(FixedWidth.UInt + FixedWidth.UInt + GetValueSize((IList)value)); } else { return(ListEncoding.GetEncodeSize((IList)value)); } }