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