Libraryless. Click here for Pure Java version (5217L/29K).
1 | static long inMemorySizeOfPrimitiveArray(O o) { |
2 | ret roundUpTo(javaDataModelWordSize(), |
3 | unsafe_sizeOf(_SimulatedArrayStub) |
4 | + primitiveTypeSize(arrayElementType(o)) |
5 | *((long) Array.getLength(o))); |
6 | } |
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: | 339 / 451 |
Version history: | 5 change(s) |
Referenced in: | [show references] |