File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -740,39 +740,6 @@ class PtrArray : public ArrayBase
740
740
741
741
#define OFFSETOF__PtrArray__m_Array_ ARRAYBASE_SIZE
742
742
743
- /* Corresponds to the managed Span<T> and ReadOnlySpan<T> types.
744
- This should only ever be passed from the managed to the unmanaged world byref,
745
- as any copies of this struct made within the unmanaged world will not observe
746
- potential GC relocations of the source data. */
747
- template < class KIND >
748
- class Span
749
- {
750
- private:
751
- /* Keep fields below in sync with managed Span / ReadOnlySpan layout. */
752
- KIND* _reference;
753
- unsigned int _length;
754
-
755
- public:
756
- // !! CAUTION !!
757
- // Caller must take care not to reassign returned reference if this span corresponds
758
- // to a managed ReadOnlySpan<T>. If KIND is a reference type, caller must use a
759
- // helper like SetObjectReference instead of assigning values directly to the
760
- // reference location.
761
- KIND& GetAt (SIZE_T index)
762
- {
763
- LIMITED_METHOD_CONTRACT;
764
- SUPPORTS_DAC;
765
- _ASSERTE (index < GetLength ());
766
- return _reference[index];
767
- }
768
-
769
- // Gets the length (in elements) of this span.
770
- __inline SIZE_T GetLength () const
771
- {
772
- return _length;
773
- }
774
- };
775
-
776
743
/* a TypedByRef is a structure that is used to implement VB's BYREF variants.
777
744
it is basically a tuple of an address of some data along with a TypeHandle
778
745
that indicates the type of the address */
You can’t perform that action at this time.
0 commit comments