-
Notifications
You must be signed in to change notification settings - Fork 5k
[cdac] Add GetArrayData to Object contract, partially implement ISOSDacInterface::GetObjectData #105534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cdac] Add GetArrayData to Object contract, partially implement ISOSDacInterface::GetObjectData #105534
Changes from all commits
b5fae0c
cdbbe94
8533532
c4c9b6a
00eefee
7c36b2c
94e6aa3
9f9a7e6
8077da9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -638,8 +638,20 @@ class ArrayBase : public Object | |
|
||
inline static unsigned GetBoundsOffset(MethodTable* pMT); | ||
inline static unsigned GetLowerBoundsOffset(MethodTable* pMT); | ||
|
||
template<typename T> friend struct ::cdac_offsets; | ||
}; | ||
|
||
#ifndef DACCESS_COMPILE | ||
template<> | ||
struct cdac_offsets<ArrayBase> | ||
{ | ||
static constexpr size_t m_NumComponents = offsetof(ArrayBase, m_NumComponents); | ||
|
||
static constexpr INT32* s_arrayBoundsZero = &ArrayBase::s_arrayBoundsZero; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put this in here to expose the static without just making it public, but it is a bit weird to be under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should rename it. in #104999 Jeremy is adding some We could just name it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will rename to |
||
}; | ||
#endif | ||
|
||
// | ||
// Template used to build all the non-object | ||
// arrays of a single dimension | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there better / more explicit comments or doc that I could point to here?