Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsNetSegmentUtils.h File Reference
#include "necko-config.h"
#include "nsIOService.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NET_DEFAULT_SEGMENT_SIZE   4096
#define NET_DEFAULT_SEGMENT_COUNT   16

Functions

static nsIMemorynet_GetSegmentAlloc (PRUint32 segsize)
 returns preferred allocator for given segment size.
static void net_ResolveSegmentParams (PRUint32 &segsize, PRUint32 &segcount)
 applies defaults to segment params in a consistent way.

Define Documentation

Definition at line 49 of file nsNetSegmentUtils.h.

Definition at line 48 of file nsNetSegmentUtils.h.


Function Documentation

static nsIMemory* net_GetSegmentAlloc ( PRUint32  segsize) [inline, static]

returns preferred allocator for given segment size.

NULL implies system allocator. this result can be used when allocating a pipe.

Definition at line 57 of file nsNetSegmentUtils.h.

Here is the caller graph for this function:

static void net_ResolveSegmentParams ( PRUint32 segsize,
PRUint32 segcount 
) [inline, static]

applies defaults to segment params in a consistent way.

Definition at line 68 of file nsNetSegmentUtils.h.

{
    if (!segsize)
        segsize = NET_DEFAULT_SEGMENT_SIZE;
    if (!segcount)
        segcount = NET_DEFAULT_SEGMENT_COUNT;
}

Here is the caller graph for this function: