FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitcore/Buffers.monkey.js at master · trapp/bitcore · GitHub
trapp
bitcore
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bitcore
/
Buffers.monkey.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (16 loc) · 402 Bytes
Breadcrumbs
bitcore
/
Buffers.monkey.js
Copy path
File metadata and controls
16 lines (16 loc) · 402 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
exports
.
patch
=
function
(
Buffers
)
{
Buffers
.
prototype
.
skip
=
function
(
i
)
{
if
(
i
==
0
)
{
return
;
}
else
if
(
i
==
this
.
length
)
{
this
.
buffers
=
[
]
;
this
.
length
=
0
;
return
;
}
var
pos
=
this
.
pos
(
i
)
;
this
.
buffers
=
this
.
buffers
.
slice
(
pos
.
buf
)
;
this
.
buffers
[
0
]
.
length
-=
pos
.
offset
;
this
.
buffers
[
0
]
.
offset
+=
pos
.
offset
;
this
.
length
-=
i
;
}
;
}
;
Back
|
FazBrowse Home
|
New Git URL