Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-deck-encode
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
MyCard
ygopro-deck-encode
Commits
f1a01637
Commit
f1a01637
authored
May 21, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
07e4a4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ygom.ts
src/ygom.ts
+2
-2
No files found.
src/ygom.ts
View file @
f1a01637
...
@@ -20,7 +20,7 @@ class BitWriter {
...
@@ -20,7 +20,7 @@ class BitWriter {
const
remain
=
8
-
this
.
bitPos
;
const
remain
=
8
-
this
.
bitPos
;
const
take
=
Math
.
min
(
remain
,
length
);
const
take
=
Math
.
min
(
remain
,
length
);
const
shift
=
length
-
take
;
const
shift
=
length
-
take
;
this
.
current
|=
((
value
>>
shift
)
&
((
1
<<
take
)
-
1
))
<<
(
remain
-
take
);
this
.
current
|=
((
value
>>
>
shift
)
&
((
1
<<
take
)
-
1
))
<<
(
remain
-
take
);
this
.
bitPos
+=
take
;
this
.
bitPos
+=
take
;
length
-=
take
;
length
-=
take
;
...
@@ -50,7 +50,7 @@ class BitReader {
...
@@ -50,7 +50,7 @@ class BitReader {
while
(
length
>
0
)
{
while
(
length
>
0
)
{
const
remain
=
8
-
this
.
bitPos
;
const
remain
=
8
-
this
.
bitPos
;
const
take
=
Math
.
min
(
remain
,
length
);
const
take
=
Math
.
min
(
remain
,
length
);
const
bits
=
(
this
.
bytes
[
this
.
index
]
>>
(
remain
-
take
))
&
((
1
<<
take
)
-
1
);
const
bits
=
(
this
.
bytes
[
this
.
index
]
>>
>
(
remain
-
take
))
&
((
1
<<
take
)
-
1
);
result
=
(
result
<<
take
)
|
bits
;
result
=
(
result
<<
take
)
|
bits
;
this
.
bitPos
+=
take
;
this
.
bitPos
+=
take
;
length
-=
take
;
length
-=
take
;
...
...
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