Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Issue 1364613002: Add a hexadecimal codec. (Closed)

Created:
5 years, 2 months ago by nweiz
Modified:
5 years, 2 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/convert.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 62

Patch Set 2 : Code review changes #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -17 lines) Patch
M README.md View 1 chunk +5 lines, -8 lines 0 comments Download
A lib/convert.dart View 1 chunk +7 lines, -0 lines 0 comments Download
A lib/src/hex.dart View 1 1 chunk +29 lines, -0 lines 1 comment Download
A lib/src/hex/decoder.dart View 1 1 chunk +164 lines, -0 lines 16 comments Download
A lib/src/hex/encoder.dart View 1 1 chunk +82 lines, -0 lines 5 comments Download
M pubspec.yaml View 1 chunk +9 lines, -9 lines 0 comments Download
A test/hex_test.dart View 1 1 chunk +146 lines, -0 lines 4 comments Download

Messages

Total messages: 14 (2 generated)
nweiz
5 years, 2 months ago (2015-09-22 23:23:17 UTC) #1
Lasse Reichstein Nielsen
Cool converter. LGTM with comments (and suggestions! :) https://codereview.chromium.org/1364613002/diff/1/lib/src/hex.dart File lib/src/hex.dart (right): https://codereview.chromium.org/1364613002/diff/1/lib/src/hex.dart#newcode22 lib/src/hex.dart:22: final ...
5 years, 2 months ago (2015-09-23 08:32:05 UTC) #2
nweiz
Code review changes
5 years, 2 months ago (2015-09-23 22:03:10 UTC) #3
nweiz
https://codereview.chromium.org/1364613002/diff/1/lib/src/hex.dart File lib/src/hex.dart (right): https://codereview.chromium.org/1364613002/diff/1/lib/src/hex.dart#newcode22 lib/src/hex.dart:22: final HexEncoder encoder = hexEncoder; On 2015/09/23 08:32:03, Lasse ...
5 years, 2 months ago (2015-09-23 22:04:21 UTC) #4
nweiz
(Holding off on submitting for another round of comments)
5 years, 2 months ago (2015-09-23 22:05:11 UTC) #5
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1364613002/diff/1/lib/src/hex/decoder.dart File lib/src/hex/decoder.dart (right): https://codereview.chromium.org/1364613002/diff/1/lib/src/hex/decoder.dart#newcode60 lib/src/hex/decoder.dart:60: if (_lastDigit == null) { True. This is ...
5 years, 2 months ago (2015-09-24 08:07:02 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/1364613002/diff/20001/lib/src/hex/decoder.dart File lib/src/hex/decoder.dart (right): https://codereview.chromium.org/1364613002/diff/20001/lib/src/hex/decoder.dart#newcode68 lib/src/hex/decoder.dart:68: var codeUnits = string.codeUnits.take(end).skip(start); However, since codeUnits is a ...
5 years, 2 months ago (2015-09-24 11:37:39 UTC) #7
kevmoo
DBC: rebase against what's on github? They seem a bit out of sync.
5 years, 2 months ago (2015-09-24 17:50:52 UTC) #9
sra1
DBC. TL;DR: pass the codeUnits all the way through to the _decode loop. https://codereview.chromium.org/1364613002/diff/20001/lib/src/hex.dart File ...
5 years, 2 months ago (2015-09-24 18:39:36 UTC) #11
nweiz
Committed patchset #2 (id:20001) manually as bc95e00ad577abac3fceb63b25dd619abc36d3de (presubmit successful).
5 years, 2 months ago (2015-09-24 23:23:11 UTC) #12
nweiz
https://codereview.chromium.org/1364613002/diff/1/lib/src/hex/decoder.dart File lib/src/hex/decoder.dart (right): https://codereview.chromium.org/1364613002/diff/1/lib/src/hex/decoder.dart#newcode90 lib/src/hex/decoder.dart:90: int _decode(Iterable<int> runes, List<int> destination, int start) { On ...
5 years, 2 months ago (2015-09-24 23:23:42 UTC) #13
Lasse Reichstein Nielsen
5 years, 2 months ago (2015-09-25 06:40:33 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/1364613002/diff/20001/lib/src/hex/decoder.dart
File lib/src/hex/decoder.dart (right):

https://codereview.chromium.org/1364613002/diff/20001/lib/src/hex/decoder.dar...
lib/src/hex/decoder.dart:112: var hexPairs = (end - start - 1) ~/ 2;
I guess that's just a difference in perspective. I was seeing it as the number
of pairs being output, which includes the carry-over byte

Powered by Google App Engine
This is Rietveld 408576698