Permalink
Browse files

Implement single cycle using Programmatic.

Closes #312.
  • Loading branch information...
1 parent 0c97aeb commit 15da783dcbd3dd4517bb9de4bd475f037b66cffc @bigeasy committed Mar 4, 2014
View
@@ -1,5 +1,6 @@
### Issue by Issue
+ * Implement single cycle using Programmatic. #312.
* Implement double cycle using Programmatic. #311.
* Implement signed short cycle using Programmatic. #310.
* Upgrade Proof to 0.0.44. #309.
File renamed without changes.
@@ -17,9 +17,11 @@ module.exports = function (object, callback) {
if (start == end) {
return start
}
- _foo[bite--] = buffer[start++]
+ _foo[bite] = buffer[start++]
+ bite--
}
- object["foo"] = new DataView(_foo).getFloat32(0, true)
+ _foo = new DataView(_foo).getFloat32(0, true)
+ object["foo"] = _foo
}
if (next = callback(object)) {
@@ -17,9 +17,11 @@ module.exports = function (object, callback) {
if (start == end) {
return start
}
- _foo[bite++] = buffer[start++]
+ _foo[bite] = buffer[start++]
+ bite++
}
- object["foo"] = new DataView(_foo).getFloat32(0, true)
+ _foo = new DataView(_foo).getFloat32(0, true)
+ object["foo"] = _foo
}
if (next = callback(object)) {
@@ -19,7 +19,8 @@ module.exports = function (object, callback) {
if (start == end) {
return start
}
- buffer[start++] = _foo[bite--]
+ buffer[start++] = _foo[bite]
+ bite--
}
}
@@ -48,7 +49,6 @@ module.exports = function (object, callback) {
buffer[start + 1] = _foo[2]
buffer[start + 2] = _foo[1]
buffer[start + 3] = _foo[0]
-
start += 4
if (next = callback && callback(object)) {
@@ -19,7 +19,8 @@ module.exports = function (object, callback) {
if (start == end) {
return start
}
- buffer[start++] = _foo[bite++]
+ buffer[start++] = _foo[bite]
+ bite++
}
}
@@ -48,7 +49,6 @@ module.exports = function (object, callback) {
buffer[start + 1] = _foo[1]
buffer[start + 2] = _foo[2]
buffer[start + 3] = _foo[3]
-
start += 4
if (next = callback && callback(object)) {

0 comments on commit 15da783

Please sign in to comment.