Skip to content

Commit 8e935f3

Browse files
committed
start -> startaddr
1 parent 142ad6d commit 8e935f3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Abstract/ObjectHandle.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ where `oh <: COFFHandle`).
3535
- seek()
3636
- seekstart()
3737
- skip()
38-
- start()
38+
- startaddr()
3939
- iostream()
4040
- position()
4141
- read()
@@ -171,16 +171,16 @@ Returns the `IOStream` backing the `ObjectHandle`
171171
@mustimplement iostream(oh::ObjectHandle)
172172

173173
"""
174-
start(oh::ObjectHandle)
174+
startaddr(oh::ObjectHandle)
175175
176176
Returns the offset within the underlying `IOStream` at which this
177177
`ObjectHandle` is located.
178178
"""
179-
@mustimplement start(oh::ObjectHandle)
179+
@mustimplement startaddr(oh::ObjectHandle)
180180

181181
unpack(oh::ObjectHandle, T) = unpack(iostream(oh), T, endianness(oh))
182-
position(oh::ObjectHandle) = position(iostream(oh)) - start(oh)
183-
seek(oh::ObjectHandle, pos::Integer) = seek(iostream(oh), start(oh) + pos)
182+
position(oh::ObjectHandle) = position(iostream(oh)) - startaddr(oh)
183+
seek(oh::ObjectHandle, pos::Integer) = seek(iostream(oh), startaddr(oh) + pos)
184184
seekstart(oh::ObjectHandle) = seek(oh, 0)
185185

186186
# Generate a bunch of wrappers for ObjectHandles that just call iostream()

src/COFF/COFFHandle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868

6969

7070
## IOStream-like operations:
71-
start(oh::COFFHandle) = oh.start
71+
startaddr(oh::COFFHandle) = oh.start
7272
iostream(oh::COFFHandle) = oh.io
7373

7474
## Format-specific properties:

src/ELF/ELFHandle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ end
6161

6262

6363
## IOStream-like operations:
64-
start(oh::ELFHandle) = oh.start
64+
startaddr(oh::ELFHandle) = oh.start
6565
iostream(oh::ELFHandle) = oh.io
6666

6767

src/MachO/MachOHandle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function readmeta(io::IO,::Type{MachOHandle})
3434
end
3535

3636
## IOStream-like operations:
37-
start(oh::MachOHandle) = oh.start
37+
startaddr(oh::MachOHandle) = oh.start
3838
iostream(oh::MachOHandle) = oh.io
3939

4040

0 commit comments

Comments
 (0)