github.com/shakinm/xlsReader@v0.9.12/xls/record/extsst.go (about) 1 package record 2 3 import "github.com/shakinm/xlsReader/xls/structure" 4 5 //EXTSST: Extended Shared String Table 6 7 var ExtSstRecord = [2]byte{0xFF, 0x00} //(FFh) 8 9 type ExtSST struct { 10 dsst [2]byte 11 rgisstinf []structure.ISSTINF 12 } 13 14 func (r *ExtSST) GetRgisstinf() []structure.ISSTINF { 15 return r.rgisstinf 16 } 17 18 func (r *ExtSST) Read(stream []byte) { 19 copy(r.dsst[:], stream[:2]) 20 21 for i := 0; i <= len(stream[2:])/6; i++ { 22 sPoint := 2 + (i * 6) 23 var inf structure.ISSTINF 24 copy(inf.Cb[:], stream[sPoint:sPoint+4]) 25 copy(inf.Ib[:], stream[sPoint+4:sPoint+6]) 26 copy(inf.Reserved[:], stream[sPoint+6:sPoint+8]) 27 r.rgisstinf=append(r.rgisstinf, inf) 28 } 29 }