-
-
Save AdamMagaluk/9835853 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Buffer 6c 69 62 70 65 62 62 6c 65> | |
<Buffer 00 09 6c 69 62 70 65 62 62 6c 65> | |
Data 0: 0 0 | |
Data 1: 9 9 | |
Data 2:l 108 6c | |
Data 3:i 105 69 | |
Data 4:b 98 62 | |
Data 5:p 112 70 | |
Data 6:e 101 65 | |
Data 7:b 98 62 | |
Data 8:b 98 62 | |
Data 9:l 108 6c | |
Data 10:e 101 65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sender = "libpebble"; | |
var subject = "Hello, Pebble!"; | |
var body = "I hate you."; | |
var buffer = new Buffer(sender.length + 1 + 1); | |
buffer[0] = 0x00; | |
buffer[1] = sender.length; | |
var bTemp = new Buffer(sender); | |
console.log(bTemp); | |
bTemp.copy(buffer,2); | |
console.log(buffer); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment