Skip to content

Commit

Permalink
Update types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jun 13, 2024
1 parent e4253bd commit d360e76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/dyld/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ const (
DYLD_CACHE_MAPPING_CONST_DATA CacheMappingFlag = 1 << 2
DYLD_CACHE_MAPPING_TEXT_STUBS CacheMappingFlag = 1 << 3
DYLD_CACHE_DYNAMIC_CONFIG_DATA CacheMappingFlag = 1 << 4
DYLD_CACHE_DYNAMIC_UNKNOWN CacheMappingFlag = 1 << 5
DYLD_CACHE_DYNAMIC_TPRO CacheMappingFlag = 1 << 6
DYLD_CACHE_MAPPING_UNKNOWN CacheMappingFlag = 1 << 5
DYLD_CACHE_MAPPING_TPRO CacheMappingFlag = 1 << 6
)

func (f CacheMappingFlag) IsNone() bool {
Expand All @@ -235,10 +235,10 @@ func (f CacheMappingFlag) IsConfigData() bool {
return (f & DYLD_CACHE_DYNAMIC_CONFIG_DATA) != 0
}
func (f CacheMappingFlag) IsUnknown() bool {
return (f & DYLD_CACHE_DYNAMIC_UNKNOWN) != 0
return (f & DYLD_CACHE_MAPPING_UNKNOWN) != 0
}
func (f CacheMappingFlag) IsTPRO() bool {
return (f & DYLD_CACHE_DYNAMIC_TPRO) != 0
return (f & DYLD_CACHE_MAPPING_TPRO) != 0
}
func (f CacheMappingFlag) String() string {
var fStr []string
Expand Down

0 comments on commit d360e76

Please sign in to comment.