UNPKG
@isomorphic-pgp/parser
Version:
latest (0.1.0)
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
An OpenPGP message parser
github.com/wmhilton/isomorphic-pgp
wmhilton/isomorphic-pgp
@isomorphic-pgp/parser
/
Uint16.js
8 lines
(6 loc)
•
167 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
.parse = function
parse
([b1, b2])
{
return
(b1 <<
8
) + b2; }
module
.
exports
.serialize = function
serialize
(n)
{
return
[(n >>
8
) &
255
, n &
255
]; }