public static void Initialize(ProtoBufDataBuffer[] buffers) { for (var i = 0; i < buffers.Length; i++) { buffers[i] = new ProtoBufDataBuffer(); } }
private void ReadRecord() { if (this.buffers == null) { this.buffers = new ProtoBufDataBuffer[this.columns.Count]; ProtoBufDataBuffer.Initialize(this.buffers); } else { ProtoBufDataBuffer.Clear(this.buffers); } var recordToken = ProtoReader.StartSubItem(this.protoReader); this.ReadRecordValues(); ProtoReader.EndSubItem(recordToken, this.protoReader); }