public override void FlushTo(Allocator context, int level) { if (this.data == null) { return; } for (var i = 0; i < this.data.Count; i++) { var item = this.data[i]; if (this.indexLength > 0) { context.Append(item.Key); } else { context.AppendValueExtend(item.Key); } if (this.elementLength > 0) { context.Append(item.Value); } else { context.AppendValueExtend(item.Value); } } }
public override void FlushTo(Allocator context, int level) { if (this.data == null) { return; } if (this.length > 0) { for (var i = 0; i < this.data.Length; i++) { context.Append(this.data[i]); } } else { for (var i = 0; i < this.data.Length; i++) { context.AppendValueExtend(this.data[i]); } } }