File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
redisinsight/ui/src/utils/formatters Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -107,30 +107,6 @@ const ASCIIToBuffer = (strInit: string) => {
107
107
return anyToBuffer ( Array . from ( Buffer . from ( result , 'hex' ) ) )
108
108
}
109
109
110
- const float32ArrayToBuffer = ( vector : Float32Array ) => {
111
- const buffer = new ArrayBuffer ( npVector . length * 4 )
112
- const dataView = new DataView ( buffer )
113
-
114
- for ( let i = 0 ; i < npVector . length ; i ++ ) {
115
- dataView . setFloat32 ( i * 4 , npVector [ i ] , true )
116
- }
117
-
118
- return new Uint8Array ( buffer )
119
- }
120
-
121
-
122
- const float64ArrayToBuffer = ( vector : Float64Array ) => {
123
- const buffer = new ArrayBuffer ( npVector . length * 8 )
124
- const dataView = new DataView ( buffer )
125
-
126
- for ( let i = 0 ; i < npVector . length ; i ++ ) {
127
- dataView . setFloat64 ( i * 8 , npVector [ i ] , true )
128
- }
129
-
130
- return new Uint8Array ( buffer )
131
- }
132
-
133
-
134
110
const bufferToFloat32Array = ( data : Uint8Array ) => {
135
111
const buffer = new Uint8Array ( data ) . buffer
136
112
const dataView = new DataView ( buffer )
@@ -236,8 +212,6 @@ export {
236
212
bufferToJava ,
237
213
bufferToFloat32Array ,
238
214
bufferToFloat64Array ,
239
- float32ArrayToBuffer ,
240
- float64ArrayToBuffer ,
241
215
}
242
216
243
217
window . ri = {
You can’t perform that action at this time.
0 commit comments