|
7 | 7 | using System; |
8 | 8 | using System.Runtime.InteropServices; |
9 | 9 | using System.Security; |
| 10 | +using System.Runtime.CompilerServices; |
| 11 | + |
| 12 | +[assembly:InternalsVisibleTo("CppSharp.Parser.CSharp")] |
10 | 13 |
|
11 | 14 | namespace Std |
12 | 15 | { |
@@ -400,17 +403,17 @@ public unsafe partial struct __Internal |
400 | 403 | public global::System.IntPtr __Instance { get; protected set; } |
401 | 404 |
|
402 | 405 | protected int __PointerAdjustment; |
403 | | - public static readonly System.Collections.Concurrent.ConcurrentDictionary<IntPtr, Allocator> NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary<IntPtr, Allocator>(); |
| 406 | + internal static readonly System.Collections.Concurrent.ConcurrentDictionary<IntPtr, Allocator> NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary<IntPtr, Allocator>(); |
404 | 407 | protected void*[] __OriginalVTables; |
405 | 408 |
|
406 | 409 | protected bool __ownsNativeInstance; |
407 | 410 |
|
408 | | - public static Allocator __CreateInstance(global::System.IntPtr native, bool skipVTables = false) |
| 411 | + internal static Allocator __CreateInstance(global::System.IntPtr native, bool skipVTables = false) |
409 | 412 | { |
410 | 413 | return new Allocator(native.ToPointer(), skipVTables); |
411 | 414 | } |
412 | 415 |
|
413 | | - public static Allocator __CreateInstance(Allocator.__Internal native, bool skipVTables = false) |
| 416 | + internal static Allocator __CreateInstance(Allocator.__Internal native, bool skipVTables = false) |
414 | 417 | { |
415 | 418 | return new Allocator(native, skipVTables); |
416 | 419 | } |
@@ -496,17 +499,17 @@ public unsafe partial struct __Internal |
496 | 499 | public global::System.IntPtr __Instance { get; protected set; } |
497 | 500 |
|
498 | 501 | protected int __PointerAdjustment; |
499 | | - public static readonly System.Collections.Concurrent.ConcurrentDictionary<IntPtr, BasicString> NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary<IntPtr, BasicString>(); |
| 502 | + internal static readonly System.Collections.Concurrent.ConcurrentDictionary<IntPtr, BasicString> NativeToManagedMap = new System.Collections.Concurrent.ConcurrentDictionary<IntPtr, BasicString>(); |
500 | 503 | protected void*[] __OriginalVTables; |
501 | 504 |
|
502 | 505 | protected bool __ownsNativeInstance; |
503 | 506 |
|
504 | | - public static BasicString __CreateInstance(global::System.IntPtr native, bool skipVTables = false) |
| 507 | + internal static BasicString __CreateInstance(global::System.IntPtr native, bool skipVTables = false) |
505 | 508 | { |
506 | 509 | return new BasicString(native.ToPointer(), skipVTables); |
507 | 510 | } |
508 | 511 |
|
509 | | - public static BasicString __CreateInstance(BasicString.__Internal native, bool skipVTables = false) |
| 512 | + internal static BasicString __CreateInstance(BasicString.__Internal native, bool skipVTables = false) |
510 | 513 | { |
511 | 514 | return new BasicString(native, skipVTables); |
512 | 515 | } |
@@ -690,99 +693,6 @@ public partial struct __Internal |
690 | 693 |
|
691 | 694 | [FieldOffset(12)] |
692 | 695 | public fixed byte _Isleadbyte[32]; |
693 | | - |
694 | | - [FieldOffset(13)] |
695 | | - public byte __dummy__Isleadbyte_1; |
696 | | - |
697 | | - [FieldOffset(14)] |
698 | | - public byte __dummy__Isleadbyte_2; |
699 | | - |
700 | | - [FieldOffset(15)] |
701 | | - public byte __dummy__Isleadbyte_3; |
702 | | - |
703 | | - [FieldOffset(16)] |
704 | | - public byte __dummy__Isleadbyte_4; |
705 | | - |
706 | | - [FieldOffset(17)] |
707 | | - public byte __dummy__Isleadbyte_5; |
708 | | - |
709 | | - [FieldOffset(18)] |
710 | | - public byte __dummy__Isleadbyte_6; |
711 | | - |
712 | | - [FieldOffset(19)] |
713 | | - public byte __dummy__Isleadbyte_7; |
714 | | - |
715 | | - [FieldOffset(20)] |
716 | | - public byte __dummy__Isleadbyte_8; |
717 | | - |
718 | | - [FieldOffset(21)] |
719 | | - public byte __dummy__Isleadbyte_9; |
720 | | - |
721 | | - [FieldOffset(22)] |
722 | | - public byte __dummy__Isleadbyte_10; |
723 | | - |
724 | | - [FieldOffset(23)] |
725 | | - public byte __dummy__Isleadbyte_11; |
726 | | - |
727 | | - [FieldOffset(24)] |
728 | | - public byte __dummy__Isleadbyte_12; |
729 | | - |
730 | | - [FieldOffset(25)] |
731 | | - public byte __dummy__Isleadbyte_13; |
732 | | - |
733 | | - [FieldOffset(26)] |
734 | | - public byte __dummy__Isleadbyte_14; |
735 | | - |
736 | | - [FieldOffset(27)] |
737 | | - public byte __dummy__Isleadbyte_15; |
738 | | - |
739 | | - [FieldOffset(28)] |
740 | | - public byte __dummy__Isleadbyte_16; |
741 | | - |
742 | | - [FieldOffset(29)] |
743 | | - public byte __dummy__Isleadbyte_17; |
744 | | - |
745 | | - [FieldOffset(30)] |
746 | | - public byte __dummy__Isleadbyte_18; |
747 | | - |
748 | | - [FieldOffset(31)] |
749 | | - public byte __dummy__Isleadbyte_19; |
750 | | - |
751 | | - [FieldOffset(32)] |
752 | | - public byte __dummy__Isleadbyte_20; |
753 | | - |
754 | | - [FieldOffset(33)] |
755 | | - public byte __dummy__Isleadbyte_21; |
756 | | - |
757 | | - [FieldOffset(34)] |
758 | | - public byte __dummy__Isleadbyte_22; |
759 | | - |
760 | | - [FieldOffset(35)] |
761 | | - public byte __dummy__Isleadbyte_23; |
762 | | - |
763 | | - [FieldOffset(36)] |
764 | | - public byte __dummy__Isleadbyte_24; |
765 | | - |
766 | | - [FieldOffset(37)] |
767 | | - public byte __dummy__Isleadbyte_25; |
768 | | - |
769 | | - [FieldOffset(38)] |
770 | | - public byte __dummy__Isleadbyte_26; |
771 | | - |
772 | | - [FieldOffset(39)] |
773 | | - public byte __dummy__Isleadbyte_27; |
774 | | - |
775 | | - [FieldOffset(40)] |
776 | | - public byte __dummy__Isleadbyte_28; |
777 | | - |
778 | | - [FieldOffset(41)] |
779 | | - public byte __dummy__Isleadbyte_29; |
780 | | - |
781 | | - [FieldOffset(42)] |
782 | | - public byte __dummy__Isleadbyte_30; |
783 | | - |
784 | | - [FieldOffset(43)] |
785 | | - public byte __dummy__Isleadbyte_31; |
786 | 696 | } |
787 | 697 | } |
788 | 698 |
|
|
0 commit comments