Skip to content

Commit 0596c29

Browse files
committed
fix
1 parent c860c9f commit 0596c29

File tree

1 file changed

+4
-0
lines changed
  • packages/ctool-core/src/helper/text

1 file changed

+4
-0
lines changed

packages/ctool-core/src/helper/text/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ class Text {
125125
return (Buffer.from(this.uint.uint8Array).toString('hex'))[options.caps === "upper" ? "toUpperCase" : 'toLowerCase']()
126126
}
127127

128+
toUint8Array() {
129+
return this.uint.uint8Array
130+
}
131+
128132
toArray() {
129133
return Array.from(this.uint.uint8Array)
130134
}

0 commit comments

Comments
 (0)