C# Class FiftyOne.Foundation.Mobile.Detection.Factories.TrieFactory

Reader used to create a provider from data structured in a decision tree format.
Afficher le fichier Open project: 51Degrees/dotNET-Device-Detection

Méthodes publiques

Méthode Description
Create ( byte array ) : TrieProvider

Creates a new provider from the byte array supplied.

Create ( string file ) : TrieProvider

Creates a new provider from the binary file supplied.

Create ( string file, bool isTempFile ) : TrieProvider

Creates a new provider from the binary file supplied.

Private Methods

Méthode Description
Create ( Pool pool ) : TrieProvider
ReadDevices ( BinaryReader reader ) : byte[]
ReadHeaders ( BinaryReader reader ) : byte[]
ReadLookupList ( BinaryReader reader ) : byte[]
ReadProperties ( BinaryReader reader ) : byte[]
ReadStrings ( BinaryReader reader ) : byte[]

Method Details

Create() public static méthode

Creates a new provider from the byte array supplied.
public static Create ( byte array ) : TrieProvider
array byte
Résultat TrieProvider

Create() public static méthode

Creates a new provider from the binary file supplied.
public static Create ( string file ) : TrieProvider
file string Binary file to use to create the provider.
Résultat TrieProvider

Create() public static méthode

Creates a new provider from the binary file supplied.
public static Create ( string file, bool isTempFile ) : TrieProvider
file string Binary file to use to create the provider.
isTempFile bool True if the file should be deleted when the source is disposed
Résultat TrieProvider