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
| const logger = require('../../logger'); | |
| /** | |
| * A cache for handling the delay of SQS messages | |
| * @param {Object} opts The options object | |
| */ | |
| function MessageCache(opts) { | |
| // Store the messages that we receive, so that we can | |
| // keep track of the visibility timeout for these messages | |
| this.messageCache = {}; |
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
| let byte = 0; | |
| let shift = 0; | |
| [0, 1, 1, 1, 1, 0, 0, 1] | |
| .map((bit) => { | |
| byte = byte | bit << (7 - shift); | |
| }); | |
| console.log(`The input byte evaluates to ${byte}`); |
NewerOlder