Get the size from the shared buffer.