Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ben1hop committed Feb 28, 2024
1 parent eae3d72 commit 510ecf6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src-electron/validation/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async function getBoundsInteger(attribute, typeSize, isSigned) {
* Converts an unsigned integer to its signed value. Returns the same integer if its not a signed type.
* Works for both BigInts and regular numbers.
* @param {*} value - integer to convert
* @param {*} bits - bit representation
* @param {*} typeSize - bit representation
* @returns A decimal number
*/
function unsignedToSignedInteger(value, typeSize) {
Expand All @@ -248,6 +248,7 @@ function unsignedToSignedInteger(value, typeSize) {
* Shifts signed hexadecimals to their correct value.
* @param {*} attribute - attribute to convert
* @param {*} typeSize - bit representation size
* @param {*} isSigned - is type is signed
* @returns A decimal number
*/
async function getIntegerFromAttribute(attribute, typeSize, isSigned) {
Expand All @@ -264,6 +265,14 @@ async function getIntegerFromAttribute(attribute, typeSize, isSigned) {
return value
}

/**
* Returns information about an integer type.
* @param {*} db
* @param {*} zapSessionId
* @param {*} clusterRef
* @param {*} attribType
* @returns {*} size: bit representation , isSigned: is signed type
*/
async function getIntegerAttributeSize(
db,
zapSessionId,
Expand Down

0 comments on commit 510ecf6

Please sign in to comment.