Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
22eceb68
Commit
22eceb68
authored
Jul 31, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix deck encode
parent
3f310cb0
Pipeline
#28806
passed with stages
in 26 minutes and 15 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
data-manager/DeckEncoder.js
data-manager/DeckEncoder.js
+2
-0
data-manager/DeckEncoder.ts
data-manager/DeckEncoder.ts
+3
-1
No files found.
data-manager/DeckEncoder.js
View file @
22eceb68
...
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
...
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports
.
decodeDeck
=
exports
.
encodeDeck
=
void
0
;
exports
.
decodeDeck
=
exports
.
encodeDeck
=
void
0
;
const
assert_1
=
__importDefault
(
require
(
"
assert
"
));
const
assert_1
=
__importDefault
(
require
(
"
assert
"
));
function
encodeDeck
(
deck
)
{
function
encodeDeck
(
deck
)
{
deck
.
main
??
=
[];
deck
.
side
??
=
[];
let
pointer
=
0
;
let
pointer
=
0
;
const
bufferSize
=
(
2
+
deck
.
main
.
length
+
deck
.
side
.
length
)
*
4
;
const
bufferSize
=
(
2
+
deck
.
main
.
length
+
deck
.
side
.
length
)
*
4
;
const
buffer
=
Buffer
.
allocUnsafe
(
bufferSize
);
const
buffer
=
Buffer
.
allocUnsafe
(
bufferSize
);
...
...
data-manager/DeckEncoder.ts
View file @
22eceb68
...
@@ -6,6 +6,8 @@ export interface Deck {
...
@@ -6,6 +6,8 @@ export interface Deck {
}
}
export
function
encodeDeck
(
deck
:
Deck
)
{
export
function
encodeDeck
(
deck
:
Deck
)
{
deck
.
main
??
=
[];
deck
.
side
??
=
[];
let
pointer
=
0
;
let
pointer
=
0
;
const
bufferSize
=
(
2
+
deck
.
main
.
length
+
deck
.
side
.
length
)
*
4
;
const
bufferSize
=
(
2
+
deck
.
main
.
length
+
deck
.
side
.
length
)
*
4
;
const
buffer
=
Buffer
.
allocUnsafe
(
bufferSize
);
const
buffer
=
Buffer
.
allocUnsafe
(
bufferSize
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment