public function __construct($header, $array = array())
{
if (is_array($header)) {
$header = new Gpf_Data_RecordHeader($header);
}
$this->header = $header;
$this->record = array_values($array);
while (count($this->record) < $this->header->getSize()) {
$this->record[] = null;
}
}