libsmart.c
/**
 * Return the total buffer size needed by the protocol's page list
 */
Return the total buffer size needed by the protocol's page list
Return the total buffer size needed by the protocol ' s page list
static uint32_t
__smart_buffer_size(smart_h h)
{
	smart_t *s = h;
	uint32_t size = 0;
	if ((s != NULL) && (s->pg_list != NULL)) {
		smart_page_list_t *plist = s->pg_list;
		uint32_t p = 0;
		for (p = 0; p < plist->pg_count; p++) {
			size += plist->pages[p].bytes;
		}
	}
	return size;
}
static uint32_t __smart_buffer_size ( smart_h h ) { smart_t * s = h ; uint32_t size = 0 ; if ( ( s != NULL ) && ( s -> pg_list != NULL ) ) { smart_page_list_t * plist = s -> pg_list ; uint32_t p = 0 ; for ( p = 0 ; p < plist -> pg_count ; p ++ ) { size += plist -> pages [ p ] . bytes ; } } return size ; }
Return the total buffer size needed by the protocol's page list
Return the total buffer size needed by the protocol ' s page list