} // Read public static uint Read(this NativeReader reader, uint offset, out ConstantCharValueHandle handle) { uint value; offset = reader.DecodeUnsigned(offset, out value); handle = new ConstantCharValueHandle((int)value); handle._Validate(); return offset; } // Read
} // Read public static uint Read(this NativeReader reader, uint offset, out ConstantCharValueHandle[] values) { uint count; offset = reader.DecodeUnsigned(offset, out count); if (count == 0) { values = s_emptyConstantCharValueHandleArray; } else { values = new ConstantCharValueHandle[count]; for (uint i = 0; i < count; ++i) { ConstantCharValueHandle tmp; offset = reader.Read(offset, out tmp); values[i] = tmp; } } return offset; } // Read
} // IsNull internal bool IsNull(ConstantCharValueHandle handle) { return (handle._value & 0x00FFFFFF) == 0; } // IsNull
} // Equals public bool Equals(ConstantCharValueHandle handle) { return _value == handle._value; } // Equals
} // ToHandle internal Handle ToHandle(ConstantCharValueHandle handle) { return new Handle(handle._value); } // ToHandle
} // GetConstantCharArray public ConstantCharValue GetConstantCharValue(ConstantCharValueHandle handle) { var record = new ConstantCharValue() { _reader = this, _handle = handle }; var offset = (uint)handle.Offset; offset = _streamReader.Read(offset, out record._value); return record; } // GetConstantCharValue
} // Read public static uint Read(this NativeReader reader, uint offset, out ConstantCharValueHandle[] values) { uint count; offset = reader.DecodeUnsigned(offset, out count); #if !NETFX_45 if (count == 0) { values = Array.Empty<ConstantCharValueHandle>(); } else #endif { values = new ConstantCharValueHandle[count]; for (uint i = 0; i < count; ++i) { ConstantCharValueHandle tmp; offset = reader.Read(offset, out tmp); values[i] = tmp; } } return offset; } // Read