C# Class NAudio.Lame.LameMP3FileWriter.ArrayUnion

Show file Open project: ImagineLearning/NAudio.Lame

Public Methods

Method Description
ArrayUnion ( int reqBytes ) : System

Initialize array to hold the requested number of bytes

Since all arrays will have the same apparent count, allocation is done on the array with the largest data type. This helps to prevent out-of-bounds reads and writes by methods that do not know about the union.

Method Details

ArrayUnion() public method

Initialize array to hold the requested number of bytes
Since all arrays will have the same apparent count, allocation is done on the array with the largest data type. This helps to prevent out-of-bounds reads and writes by methods that do not know about the union.
public ArrayUnion ( int reqBytes ) : System
reqBytes int Minimum byte count of array
return System