Crate rust_stdf

Source
Expand description

rust-stdf is a library for parsing Standard Test Data Format (STDF) files of version V4 and V4-2007.

Current capability:

  • Reading & parsing STDF files.
  • Reading & parsing ATDF files. (feature: atdf)
  • Support several compressed formats.

Available features:

  • gzip: gzip compression (.gz) support powered by flate2
  • bzip: bzip compression (.bz2) support powered by bzip2
  • zipfile: zip compression (.zip) support powered by zip
  • atdf: ATDF reader + STDF -> ATDF convertor (in dev)
  • serialize: serialize STDF records by serde

In development:

  • (dev) Dump StdfRecord to a new stdf file.
  • (dev) Functions for ATDF <-> STDF format.

Modules§

stdf_file
This module contains STDF Reader and record iterator
stdf_record_type
This module contains constants for STDF Record type check and some help functions

Structs§

ATR
BPS
CDR
CNR
DTR
EPS
FAR
FTR
GDR
HBR
MIR
MPR
MRR
NMR
PCR
PGR
PIR
PLR
PMR
PRR
PSR
PTR
RDR
RawDataElement
unprocessed STDF record data, contains:
RecordHeader
ReservedRec
SBR
SDR
SSR
STR
TSR
VUR
WCR
WIR
WRR

Enums§

ByteOrder
CompressType
KxUf
This enum is for STR that introduced in STDF V4-2007.
StdfRecord
StdfRecord is the data that returned from StdfReader iterator.
V1
This enum is for storing generic data V1, the data type is the field name.

Type Aliases§

B1
Altough B1 can be treated as u8, but its representation in ATDF is differ from U1, so I used a array of one u8 for B1
Bn
C1
Rust char is 4 bytes long, however STDF char is only 1 byte we will read u8 from file stream and convert to Rust char during parse step
Cf
Cn
Dn
I1
I2
I4
KxCf
KxCn
KxN1
KxR4
KxSn
KxU1
KxU2
KxU4
KxU8
R4
R8
Sn
U1
U2
U4
U8
Vn