1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-20 16:11:17 +00:00

Support reading SII file from reader

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-12-24 14:59:42 +01:00
parent 57f6d846b5
commit b26ae0d691
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ import (
var blockStartRegex = regexp.MustCompile(`^([^\s:]+)\s?:\s?([^\s]+)(?:\s?\{)?$`)
func parseSIIPlainFile(r io.Reader) (*Unit, error) {
func ParseSIIPlainFile(r io.Reader) (*Unit, error) {
var (
blockContent []byte
blockName string

2
sii.go
View file

@ -105,7 +105,7 @@ func ReadUnitFile(filename string) (*Unit, error) {
return nil, errors.New("Invalid / unknown file type header found")
}
return parseSIIPlainFile(r)
return ParseSIIPlainFile(r)
}
// SetEncryptionKey sets the 32-byte key to encrypt / decrypt ScsC files.