Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Issue 12784045: code review 12784045: archive/zip: add File.DataOffset (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by bradfitz
Modified:
12 years, 4 months ago
Reviewers:
dsymonds, rsc
CC:
golang-dev, rsc, dsymonds, adg1
Visibility:
Public.

Description

archive/zip: add File.DataOffset Accessor to find where the bytes of a file start.

Patch Set 1 #

Patch Set 2 : diff -r 1c523a432503 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 1c523a432503 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2a9dbe01d897 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M src/pkg/archive/zip/reader.go View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 10
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 4 months ago (2013-08-13 14:55:41 UTC) #1
rsc
i can't imagine why you'd need this. context?
12 years, 4 months ago (2013-08-13 18:29:53 UTC) #2
bradfitz
I have a server which keeps multiple versions of mostly-identical zip files in memory. This ...
12 years, 4 months ago (2013-08-13 18:35:28 UTC) #3
dsymonds
LGTM but it seems like it should have a test at least.
12 years, 4 months ago (2013-08-13 21:51:35 UTC) #4
bradfitz
Russ prefers a CompressedOffset uint64 field be added to struct File. But that means reading ...
12 years, 4 months ago (2013-08-13 21:57:49 UTC) #5
adg1
I prefer the method approach. I don't want to slow down typical users who might ...
12 years, 4 months ago (2013-08-13 22:04:45 UTC) #6
bradfitz
Or we could make it more general, having a method to return a struct of ...
12 years, 4 months ago (2013-08-13 22:18:49 UTC) #7
bradfitz
Yeah, looks like the extraLen at least can vary between the central directory and the ...
12 years, 4 months ago (2013-08-13 22:38:28 UTC) #8
rsc
LGTM as is I guess it has to be a method. Let's not invent even ...
12 years, 4 months ago (2013-08-13 23:16:50 UTC) #9
bradfitz
12 years, 4 months ago (2013-08-13 23:30:04 UTC) #10
*** Submitted as https://code.google.com/p/go/source/detail?r=12839dbf33fa ***

archive/zip: add File.DataOffset

Accessor to find where the bytes of a file start.

R=golang-dev, rsc, dsymonds, adg
CC=golang-dev
https://codereview.appspot.com/12784045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b