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