private ByteArrayRef initialized(IDataReader dataReader, int columnIndex) { string id = dataReader.GetValue(columnIndex)?.ToString(); if (!string.IsNullOrWhiteSpace(id)) { ByteArrayRef byteArrayRef = new ByteArrayRef(id); return(byteArrayRef); } return(null); }
public ByteArrayRef PopHugeByteArrayRef() { ByteArrayRef res = null; if (index < buffer.Length) { int length = PopInteger(); if (length > 0) { res = new ByteArrayRef { array = buffer, start = index, length = length }; } index += length; } else { if (LogUtil.ShowError != null) { LogUtil.ShowError("字节数组剩余字节不足。"); } } return(res); }
public Record(byte[] key, byte[] value) { this.key = new ByteArrayRef(key, 0, key.Length); this.value = value == null ? new ByteArrayRef(null, 0, 0) : new ByteArrayRef(value, 0, value.Length); }
public Record(ByteArrayRef key, ByteArrayRef value) { this.key = key; this.value = value; }