File: buffer.js

package info (click to toggle)
kdevelop 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 73,508 kB
  • sloc: cpp: 291,803; python: 4,322; javascript: 3,518; sh: 1,316; ansic: 703; xml: 414; php: 95; lisp: 66; makefile: 31; sed: 12
file content (128 lines) | stat: -rw-r--r-- 5,264 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*
    SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>

    SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/

/*
 * exports.Buffer
 */
function Buffer(size) { return ; }
exports.Buffer = Buffer;

exports.Buffer.prototype.isEncoding = function (encoding) { return true; };
exports.Buffer.prototype.isEncoding("");

exports.Buffer.prototype.write = function (string, offset, length, encoding) { return ; };
exports.Buffer.prototype.write("", 1, 1, "");

exports.Buffer.prototype.toJSON = function () { return ""; };
exports.Buffer.prototype.toJSON();

exports.Buffer.prototype.isBuffer = function (obj) { return true; };
exports.Buffer.prototype.isBuffer(new Buffer());

exports.Buffer.prototype.byteLength = function (string, encoding) { return 1; };
exports.Buffer.prototype.byteLength("", "");

exports.Buffer.prototype.concat = function (list, totalLength) { return ; };
exports.Buffer.prototype.concat([], 1);

exports.Buffer.prototype.length = 1;

exports.Buffer.prototype.copy = function (target, targetStart, sourceStart, sourceEnd) { return ; };
exports.Buffer.prototype.copy(new Buffer(), 1, 1, 1);

exports.Buffer.prototype.slice = function (start, end) { return ; };
exports.Buffer.prototype.slice(1, 1);

exports.Buffer.prototype.readUInt8 = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readUInt8(1, true);

exports.Buffer.prototype.readUInt16LE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readUInt16LE(1, true);

exports.Buffer.prototype.readUInt16BE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readUInt16BE(1, true);

exports.Buffer.prototype.readUInt32LE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readUInt32LE(1, true);

exports.Buffer.prototype.readUInt32BE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readUInt32BE(1, true);

exports.Buffer.prototype.readInt8 = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readInt8(1, true);

exports.Buffer.prototype.readInt16LE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readInt16LE(1, true);

exports.Buffer.prototype.readInt16BE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readInt16BE(1, true);

exports.Buffer.prototype.readInt32LE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readInt32LE(1, true);

exports.Buffer.prototype.readInt32BE = function (offset, noAssert) { return 1; };
exports.Buffer.prototype.readInt32BE(1, true);

exports.Buffer.prototype.readFloatLE = function (offset, noAssert) { return 1.0; };
exports.Buffer.prototype.readFloatLE(1, true);

exports.Buffer.prototype.readFloatBE = function (offset, noAssert) { return 1.0; };
exports.Buffer.prototype.readFloatBE(1, true);

exports.Buffer.prototype.readDoubleLE = function (offset, noAssert) { return 1.0; };
exports.Buffer.prototype.readDoubleLE(1, true);

exports.Buffer.prototype.readDoubleBE = function (offset, noAssert) { return 1.0; };
exports.Buffer.prototype.readDoubleBE(1, true);

exports.Buffer.prototype.writeUInt8 = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeUInt8(1, 1, true);

exports.Buffer.prototype.writeUInt16LE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeUInt16LE(1, 1, true);

exports.Buffer.prototype.writeUInt16BE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeUInt16BE(1, 1, true);

exports.Buffer.prototype.writeUInt32LE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeUInt32LE(1, 1, true);

exports.Buffer.prototype.writeUInt32BE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeUInt32BE(1, 1, true);

exports.Buffer.prototype.writeInt8 = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeInt8(1, 1, true);

exports.Buffer.prototype.writeInt16LE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeInt16LE(1, 1, true);

exports.Buffer.prototype.writeInt16BE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeInt16BE(1, 1, true);

exports.Buffer.prototype.writeInt32LE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeInt32LE(1, 1, true);

exports.Buffer.prototype.writeInt32BE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeInt32BE(1, 1, true);

exports.Buffer.prototype.writeFloatLE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeFloatLE(1.0, 1, true);

exports.Buffer.prototype.writeFloatBE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeFloatBE(1.0, 1, true);

exports.Buffer.prototype.writeDoubleLE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeDoubleLE(1.0, 1, true);

exports.Buffer.prototype.writeDoubleBE = function (value, offset, noAssert) { return ; };
exports.Buffer.prototype.writeDoubleBE(1.0, 1, true);

exports.Buffer.prototype.fill = function (value, offset, end) { return ; };
exports.Buffer.prototype.fill(_mixed, 1, 1);

exports.Buffer.prototype.INSPECT_MAX_BYTES = 1;