Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121765768
Source.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 13, 17:38
Size
569 B
Mime Type
text/x-c++
Expires
Tue, Jul 15, 17:38 (2 d)
Engine
blob
Format
Raw Data
Handle
27387221
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Source.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
class
Source
{
source
()
{
throw
new
Error
(
"Abstract"
);
}
buffer
()
{
const
source
=
this
.
source
();
if
(
Buffer
.
isBuffer
(
source
))
return
source
;
return
Buffer
.
from
(
source
,
"utf-8"
);
}
size
()
{
return
this
.
buffer
().
length
;
}
map
(
options
)
{
return
null
;
}
sourceAndMap
(
options
)
{
return
{
source
:
this
.
source
(),
map
:
this
.
map
(
options
)
};
}
updateHash
(
hash
)
{
throw
new
Error
(
"Abstract"
);
}
}
module
.
exports
=
Source
;
Event Timeline
Log In to Comment