C# Class AlbLib.Common

Contains various common functions and magic contants.
ファイルを表示 Open project: IllidanS4/AlbLib

Public Methods

Method Description
E ( int index, int &fileIndex, int &subfileIndex ) : bool

Converts nullable index to file index and subfile index

E ( int fileIndex, int subfileIndex ) : int

Converts file and subfile index to nullable index.

Skip ( this input, int bytes ) : int

Skips bytes from stream.

Method Details

E() public static method

Converts nullable index to file index and subfile index
public static E ( int index, int &fileIndex, int &subfileIndex ) : bool
index int /// Nullable index. (0 = null, 1 - 99 => 0 - 99, 100+ => 100+) ///
fileIndex int /// File index. ///
subfileIndex int /// Subfile index. ///
return bool

E() public static method

Converts file and subfile index to nullable index.
public static E ( int fileIndex, int subfileIndex ) : int
fileIndex int /// File index. ///
subfileIndex int /// Subfile index. ///
return int

Skip() public static method

Skips bytes from stream.
public static Skip ( this input, int bytes ) : int
input this /// Input stream. ///
bytes int /// Number of bytes to skip. ///
return int