github.com/shakinm/xlsReader@v0.9.12/xls/record/bof.go (about)

     1  package record
     2  
     3  //BOF: Beginning of File
     4  
     5  var BOFMARKS = []byte{0x09, 0x08} //(809h)
     6  
     7  /*
     8  The BOF record marks the beginning of the Book stream in the BIFF file. It also
     9  marks the beginning of record groups (or ―substreams‖ of the Book stream) for
    10  sheets in the workbook. For BIFF2 through BIFF4, the BIFF version is found from the
    11  high-order byte of the record number structure, as shown in the following table. For
    12  BIFF5/BIFF7, and BIFF8 use the vers structure at offset 4 to determine the BIFF version.
    13  
    14  Offset		Field Name		Size		Contents
    15  ------------------------------------------------
    16  0 			vers 			1			version:
    17  											=00 BIFF2
    18  											=02 BIFF3
    19  											=04 BIFF4
    20  											=08 BIFF5/BIFF7/BIFF8
    21  1			bof				1			09h
    22  
    23  */
    24  
    25  type bof struct {
    26  	vers byte
    27  	bof  byte
    28  }