Core/Socket: Added helpers to retrieve the size of currently ready data