Tessero\Io\FortranFile
AI assistant
Build this with Claude Code, Cursor or Copilot
Copy a Tessero-tuned prompt for Tessero\Io\FortranFile, grounded in 4 real API signatures , into your IDE's AI. No chatbot, just exact context.
readRecords
static
readRecords(string $bytes, string $dtype, string $headerDtype = 'uint32'): array
Split a Fortran unformatted file into records, decoding each to a flat PHP array.
readRecord
static
readRecord(string $bytes, string $dtype, string $headerDtype = 'uint32'): array
Convenience: decode exactly the first record. @return array<int,int|float>
writeRecord
static
writeRecord(array $values, string $dtype, string $headerDtype = 'uint32'): string
Frame one flat numeric array into a single Fortran unformatted record.
writeRecords
static
writeRecords(array $records, string $dtype, string $headerDtype = 'uint32'): string
Frame several records back-to-back. @param array<int,array<int,int|float>> $records