-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] FFI - Giving Buffer more low-level C functionality #1750
Commits on May 23, 2015
-
Configuration menu - View commit details
-
Copy full SHA for c1d2975 - Browse repository at this point
Copy the full SHA c1d2975View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1871fbf - Browse repository at this point
Copy the full SHA 1871fbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca55494 - Browse repository at this point
Copy the full SHA ca55494View commit details -
buffer: add 0-length NULL pointer Buffer to exports
Seems useful to add for completeness-sake. Presumably useful for i.e. writing the null terminator to a null-terminated C array.
Configuration menu - View commit details
-
Copy full SHA for 6c32b7e - Browse repository at this point
Copy the full SHA 6c32b7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f65088 - Browse repository at this point
Copy the full SHA 1f65088View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8eac6d - Browse repository at this point
Copy the full SHA b8eac6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9cdb38 - Browse repository at this point
Copy the full SHA a9cdb38View commit details -
Configuration menu - View commit details
-
Copy full SHA for e338a92 - Browse repository at this point
Copy the full SHA e338a92View commit details -
Configuration menu - View commit details
-
Copy full SHA for af8bff4 - Browse repository at this point
Copy the full SHA af8bff4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f1e401 - Browse repository at this point
Copy the full SHA 0f1e401View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d54386 - Browse repository at this point
Copy the full SHA 2d54386View commit details -
Configuration menu - View commit details
-
Copy full SHA for db39bc2 - Browse repository at this point
Copy the full SHA db39bc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34feb80 - Browse repository at this point
Copy the full SHA 34feb80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89e7d61 - Browse repository at this point
Copy the full SHA 89e7d61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e9c2a4 - Browse repository at this point
Copy the full SHA 5e9c2a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for db6aea9 - Browse repository at this point
Copy the full SHA db6aea9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fdf531 - Browse repository at this point
Copy the full SHA 1fdf531View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff5a094 - Browse repository at this point
Copy the full SHA ff5a094View commit details -
Configuration menu - View commit details
-
Copy full SHA for dea8c4d - Browse repository at this point
Copy the full SHA dea8c4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4dae6be - Browse repository at this point
Copy the full SHA 4dae6beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 619d136 - Browse repository at this point
Copy the full SHA 619d136View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e07bbc - Browse repository at this point
Copy the full SHA 6e07bbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6f3262 - Browse repository at this point
Copy the full SHA e6f3262View commit details -
Configuration menu - View commit details
-
Copy full SHA for 565a1e8 - Browse repository at this point
Copy the full SHA 565a1e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66d68ef - Browse repository at this point
Copy the full SHA 66d68efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51e9556 - Browse repository at this point
Copy the full SHA 51e9556View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b6ec58 - Browse repository at this point
Copy the full SHA 2b6ec58View commit details -
Configuration menu - View commit details
-
Copy full SHA for c84e890 - Browse repository at this point
Copy the full SHA c84e890View commit details -
Configuration menu - View commit details
-
Copy full SHA for 001b072 - Browse repository at this point
Copy the full SHA 001b072View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86ff08c - Browse repository at this point
Copy the full SHA 86ff08cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 319e593 - Browse repository at this point
Copy the full SHA 319e593View commit details -
Configuration menu - View commit details
-
Copy full SHA for 924da7f - Browse repository at this point
Copy the full SHA 924da7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed4d220 - Browse repository at this point
Copy the full SHA ed4d220View commit details -
buffer: remove static
buffer.NULL
BufferShould no longer be necessary now that readPointer() returns `null` explictly.
Configuration menu - View commit details
-
Copy full SHA for 13c77bd - Browse repository at this point
Copy the full SHA 13c77bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 61c5c7c - Browse repository at this point
Copy the full SHA 61c5c7cView commit details -
buffer: remove Buffer#isNull()
Should no longer be necessary now that readPointer*() returns JS `null` explicitly.
Configuration menu - View commit details
-
Copy full SHA for a9e8f62 - Browse repository at this point
Copy the full SHA a9e8f62View commit details -
buffer: remove
offset
param fromaddress()
Would make the function simply return `true` for any value >= 1, so doesn't really make any sense to keep it around.
Configuration menu - View commit details
-
Copy full SHA for f0cec38 - Browse repository at this point
Copy the full SHA f0cec38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f0d7a0 - Browse repository at this point
Copy the full SHA 3f0d7a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea44b75 - Browse repository at this point
Copy the full SHA ea44b75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7326597 - Browse repository at this point
Copy the full SHA 7326597View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ace08f - Browse repository at this point
Copy the full SHA 2ace08fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7f8d77 - Browse repository at this point
Copy the full SHA e7f8d77View commit details -
Revert "doc: add fake memory addresses to old examples"
This reverts commit 2221318.
Configuration menu - View commit details
-
Copy full SHA for 4ee5354 - Browse repository at this point
Copy the full SHA 4ee5354View commit details -
doc: add fake memory addresses to old examples
Properly this time…
Configuration menu - View commit details
-
Copy full SHA for f364f1b - Browse repository at this point
Copy the full SHA f364f1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13b5d67 - Browse repository at this point
Copy the full SHA 13b5d67View commit details -
Configuration menu - View commit details
-
Copy full SHA for f451ee7 - Browse repository at this point
Copy the full SHA f451ee7View commit details -
test: add Buffer int64 read/write tests
Mostly copied and refactored from the `ref` tests.
Configuration menu - View commit details
-
Copy full SHA for 39d468c - Browse repository at this point
Copy the full SHA 39d468cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c80b8c - Browse repository at this point
Copy the full SHA 0c80b8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1867bd6 - Browse repository at this point
Copy the full SHA 1867bd6View commit details -
buffer: use memcpy instead of reinterpret_cast
To avoid aliasing. @bnoordhuis I believe this is what you meant in: nodejs#1750 (comment) The `test/parallel/test-buffer-pointer.js` test still passes after this patch, so apparently it's working correctly.
Configuration menu - View commit details
-
Copy full SHA for b929ed0 - Browse repository at this point
Copy the full SHA b929ed0View commit details
Commits on Jun 1, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 0e5cbe5 - Browse repository at this point
Copy the full SHA 0e5cbe5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6e37cd - Browse repository at this point
Copy the full SHA d6e37cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01a3ad3 - Browse repository at this point
Copy the full SHA 01a3ad3View commit details -
Configuration menu - View commit details
-
Copy full SHA for df5bda7 - Browse repository at this point
Copy the full SHA df5bda7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8477e98 - Browse repository at this point
Copy the full SHA 8477e98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3887226 - Browse repository at this point
Copy the full SHA 3887226View commit details
Commits on Jun 4, 2015
-
buffer: remove "pointer" functions
These will be moved to static functions in the `ffi` module, to remind users of their unsafe nature on the API level.
Configuration menu - View commit details
-
Copy full SHA for c79e4f7 - Browse repository at this point
Copy the full SHA c79e4f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91e35b4 - Browse repository at this point
Copy the full SHA 91e35b4View commit details -
buffer: use base of 10 for the strto(u)ll calls
Less room for computer error this way
Configuration menu - View commit details
-
Copy full SHA for 797ef99 - Browse repository at this point
Copy the full SHA 797ef99View commit details -
buffer: change C++-land throw to a CHECK()
We're already checking for typeof "string"/"number" in JS-land. No need for the extra conditional logic.
Configuration menu - View commit details
-
Copy full SHA for 475aabb - Browse repository at this point
Copy the full SHA 475aabbView commit details
Commits on Jun 5, 2015
-
buffer: make strto(u)ll usage cross-platform
The errno EINVAL behavior is a BSDism, and won't work cross platform. Instead, pass in the char* endptr value and check where it ended up.
Configuration menu - View commit details
-
Copy full SHA for ce00983 - Browse repository at this point
Copy the full SHA ce00983View commit details