C# Class MS.Internal.Xml.Cache.XPathDocumentBuilder.NodePageFactory

Allocates pages of nodes for the XPathDocumentBuilder. The initial pages and arrays are fairly small. As each page fills, a new page that is twice as big is allocated. The max size of a page is 65536 nodes, since XPathNode indexes are 16-bits.
ファイルを表示 Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
AllocateSlot ( XPathNode &page, int &idx ) : void

Allocate the next slot in the current node page. Return a reference to the page and the index of the allocated slot.

Init ( int initialPageSize ) : void

Allocates and returns the initial node page.

Method Details

AllocateSlot() public method

Allocate the next slot in the current node page. Return a reference to the page and the index of the allocated slot.
public AllocateSlot ( XPathNode &page, int &idx ) : void
page XPathNode
idx int
return void

Init() public method

Allocates and returns the initial node page.
public Init ( int initialPageSize ) : void
initialPageSize int
return void