Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1012266
Snippet name:
Category, Type:
Content:
static void printObjectLayout(O o) { if (o instanceof Class) o = nu((Class) o); print("Size of object " + className(o) + ": " + unsafe_sizeOf(o) + " bytes"); for (Pair<S, Long> p : mapPairs(unsafe_allFieldOffsets(o))) print(" Field " + p.a + " is at offset " + p.b); print(); }
Comment:
Public (visible to everyone):
Created: 2017-11-26 20:05:38

This page without fancy editor.