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