diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-07-06 16:02:53 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-07-06 16:02:53 -0700 |
| commit | e61b3160bc8936b7ffb0af5c89b13742a7081826 (patch) | |
| tree | db3ba0e6cf0add99da6fa806709670d4b39d4bbf /hotline/file_wrapper.go | |
| parent | c0ec79dcfd267f7495274a9186b36a1b0669f000 (diff) | |
Add ForkType type alias for improved type safety
- Replace [4]byte with ForkType in ForkInfoList struct
- Update constants ForkTypeDATA and ForkTypeMACR to use ForkType
- Add String() method to ForkType for better debugging
- Improve consistency with existing type patterns (FieldType, TranType)
- Clean up unused code and improve documentation
Diffstat (limited to 'hotline/file_wrapper.go')
| -rw-r--r-- | hotline/file_wrapper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/file_wrapper.go b/hotline/file_wrapper.go index b13e0dc..b6aff94 100644 --- a/hotline/file_wrapper.go +++ b/hotline/file_wrapper.go @@ -85,7 +85,7 @@ func (f *fileWrapper) rsrcForkSize() (s [4]byte) { func (f *fileWrapper) rsrcForkHeader() FlatFileForkHeader { return FlatFileForkHeader{ - ForkType: [4]byte{0x4D, 0x41, 0x43, 0x52}, // "MACR" + ForkType: ForkTypeMACR, DataSize: f.rsrcForkSize(), } } |