/** * Get the size in bytes of a buffer */ public static long getSizeInBytes(Buffer b) { int c = b.capacity(); return getComponentSizeInBytes(b) * c; }
/** * Get the size in bytes of a buffer */ public static long getSizeInBytes(Buffer b) { int c = b.capacity(); return getComponentSizeInBytes(b) * c; }