Libraryless. Click here for Pure Java version (4562L/27K).
1 | static long sumOfObjectSizes(Iterable l) {
|
2 | O[] a = toObjectArray(l); |
3 | long arraySize = unsafe_sizeOf(a); |
4 | ret guessObjectSize(a)-arraySize; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032632 |
| Snippet name: | sumOfObjectSizes - objects can "overlap" (contain the same sub-objects) |
| Eternal ID of this version: | #1032632/3 |
| Text MD5: | 6e5f0c3ee3e978b753b5959fe01bf030 |
| Transpilation MD5: | 56e125b3a817882727346dddf2388208 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-29 23:06:01 |
| Source code size: | 149 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 358 / 456 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |