This commit is contained in:
nuknal
2024-05-17 23:53:09 +08:00
parent 0d59c8514b
commit 5b3c4aa0a4
3 changed files with 196 additions and 160 deletions

View File

@@ -50,20 +50,3 @@ func (h *EnviHdr) String() string {
return buf.String()
}
func NewBSQWriter(filepath string, content *EnviHdr) (*BSQWriter, error) {
fio, err := os.Create(filepath)
if err != nil {
return nil, err
}
w := fio
return &BSQWriter{filepath, fio, w, content}, nil
}
func (w *BSQWriter) Write(data []byte) (int, error) {
return w.w.Write(data)
}
func (w *BSQWriter) Close() error {
return w.fio.Close()
}