Libraryless. Click here for Pure Java version (5217L/29K).
static long inMemorySizeOfPrimitiveArray(O o) { ret roundUpTo(javaDataModelWordSize(), unsafe_sizeOf(_SimulatedArrayStub) + primitiveTypeSize(arrayElementType(o)) *((long) Array.getLength(o))); }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1022102 |
| Snippet name: | inMemorySizeOfPrimitiveArray |
| Eternal ID of this version: | #1022102/6 |
| Text MD5: | 4f83cd7255a3762afa85f19b688b8318 |
| Transpilation MD5: | 738e7a0a34a85cb38697016f22f67614 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-14 19:14:43 |
| Source code size: | 222 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 581 / 749 |
| Version history: | 5 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029224 - inMemorySizeOfObjectArray #1032593 - elementSize |