You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
16 Jun 05:38:13 - [info] [ss963-driver:4a2c9bf7.0a86dc] 114,50,0,0
16 Jun 05:38:13 - [info] [ss963-driver:4a2c9bf7.0a86dc] 114,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
There are the functions below. In "function create", shm.get sets the shm_size but "function get" doesnt so returns 1024 bytes length array as seen above.
@return {mixed/null} shared memory buffer/array object, see create(), or null on error /
function get(key, typeKey /= 'Buffer'*/) {
if (typeKey === undefined)
typeKey = 'Buffer';
if (BufferType[typeKey] === undefined)
throw new Error("Unknown type key " + typeKey);
var type = BufferType[typeKey];
if (!(Number.isSafeInteger(key) && key >= keyMin && key <= keyMax))
throw new RangeError('Shm key should be ' + keyMin + ' .. ' + keyMax);
let res = shm.get(key, 0, 0, 0, type);
if (res) {
res.key = key;
}
return res;
}
The text was updated successfully, but these errors were encountered:
Outputs:
There are the functions below. In "function create", shm.get sets the shm_size but "function get" doesnt so returns 1024 bytes length array as seen above.
/**
/
function create(count, typeKey /= 'Buffer'/, key /= null*/) {
if (typeKey === undefined)
typeKey = 'Buffer';
if (key === undefined)
key = null;
if (BufferType[typeKey] === undefined)
throw new Error("Unknown type key " + typeKey);
if (key !== null) {
if (!(Number.isSafeInteger(key) && key >= keyMin && key <= keyMax))
throw new RangeError('Shm key should be ' + keyMin + ' .. ' + keyMax);
}
var type = BufferType[typeKey];
//var size1 = BufferTypeSizeof[typeKey];
//var size = size1 * count;
if (!(Number.isSafeInteger(count) && count >= lengthMin && count <= lengthMax))
throw new RangeError('Count should be ' + lengthMin + ' .. ' + lengthMax);
let res;
if (key) {
res = shm.get(key, count, shm.IPC_CREAT|shm.IPC_EXCL|perm, 0, type);
} else {
do {
key = _keyGen();
res = shm.get(key, count, shm.IPC_CREAT|shm.IPC_EXCL|perm, 0, type);
} while(!res);
}
if (res) {
res.key = key;
}
return res;
}
/**
/
function get(key, typeKey /= 'Buffer'*/) {
if (typeKey === undefined)
typeKey = 'Buffer';
if (BufferType[typeKey] === undefined)
throw new Error("Unknown type key " + typeKey);
var type = BufferType[typeKey];
if (!(Number.isSafeInteger(key) && key >= keyMin && key <= keyMax))
throw new RangeError('Shm key should be ' + keyMin + ' .. ' + keyMax);
let res = shm.get(key, 0, 0, 0, type);
if (res) {
res.key = key;
}
return res;
}
The text was updated successfully, but these errors were encountered: