You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@paramdatastringstring # The byte string to copy.
@@ -80,6 +104,9 @@ function love.data.newByteData(datastring) end
80
104
---
81
105
---Creates a new Data referencing a subsection of an existing Data object.
82
106
---
107
+
---
108
+
---[Open in Browser](https://love2d.org/wiki/love.data.newDataView)
109
+
---
83
110
---@paramdatalove.Data # The Data object to reference.
84
111
---@paramoffsetnumber # The offset of the subsection to reference, in bytes.
85
112
---@paramsizenumber # The size in bytes of the subsection to reference.
@@ -91,6 +118,9 @@ function love.data.newDataView(data, offset, size) end
91
118
---
92
119
---This function behaves the same as Lua 5.3's string.pack.
93
120
---
121
+
---
122
+
---[Open in Browser](https://love2d.org/wiki/love.data.pack)
123
+
---
94
124
---@paramcontainerlove.ContainerType # What type to return the encoded data as.
95
125
---@paramformatstring # A string determining how the values are packed. Follows the rules of Lua 5.3's string.pack format strings.
96
126
---@paramv1number|boolean|string # The first value (number, boolean, or string) to serialize.
@@ -103,6 +133,9 @@ function love.data.pack(container, format, v1, ...) end
103
133
---
104
134
---This function behaves the same as Lua 5.3's string.unpack.
105
135
---
136
+
---
137
+
---[Open in Browser](https://love2d.org/wiki/love.data.unpack)
138
+
---
106
139
---@overloadfun(format: string, data: love.Data, pos?: number):number|boolean|string, number|boolean|string, number
107
140
---@paramformatstring # A string determining how the values were packed. Follows the rules of Lua 5.3's string.pack format strings.
108
141
---@paramdatastringstring # A string containing the packed (serialized) data.
@@ -116,6 +149,9 @@ function love.data.unpack(format, datastring, pos) end
116
149
---
117
150
---There are currently no LÖVE functions provided for manipulating the contents of a ByteData, but Data:getPointer can be used with LuaJIT's FFI to access and write to the contents directly.
118
151
---
152
+
---
153
+
---[Open in Browser](https://love2d.org/wiki/love.data)
154
+
---
119
155
---@classlove.ByteData:love.Object,love.Data
120
156
localByteData= {}
121
157
@@ -124,18 +160,27 @@ local ByteData = {}
124
160
---
125
161
---love.data.decompress can be used to de-compress the data (or love.math.decompress in 0.10.2 or earlier).
126
162
---
163
+
---
164
+
---[Open in Browser](https://love2d.org/wiki/love.data)
---Gets the compression format of the CompressedData.
132
171
---
172
+
---
173
+
---[Open in Browser](https://love2d.org/wiki/CompressedData:getFormat)
174
+
---
133
175
---@returnlove.CompressedDataFormat format # The format of the CompressedData.
134
176
functionCompressedData:getFormat() end
135
177
136
178
---
137
179
---Compressed data formats.
138
180
---
181
+
---
182
+
---[Open in Browser](https://love2d.org/wiki/CompressedDataFormat)
183
+
---
139
184
---@aliaslove.CompressedDataFormat
140
185
---
141
186
---The LZ4 compression format. Compresses and decompresses very quickly, but the compression ratio is not the best. LZ4-HC is used when compression level 9 is specified. Some benchmarks are available here.
@@ -157,6 +202,9 @@ function CompressedData:getFormat() end
157
202
---
158
203
---Return type of various data-returning functions.
159
204
---
205
+
---
206
+
---[Open in Browser](https://love2d.org/wiki/ContainerType)
207
+
---
160
208
---@aliaslove.ContainerType
161
209
---
162
210
---Return type is ByteData.
@@ -170,6 +218,9 @@ function CompressedData:getFormat() end
170
218
---
171
219
---Encoding format used to encode or decode data.
172
220
---
221
+
---
222
+
---[Open in Browser](https://love2d.org/wiki/EncodeFormat)
223
+
---
173
224
---@aliaslove.EncodeFormat
174
225
---
175
226
---Encode/decode data as base64 binary-to-text encoding.
@@ -183,6 +234,9 @@ function CompressedData:getFormat() end
183
234
---
184
235
---Hash algorithm of love.data.hash.
185
236
---
237
+
---
238
+
---[Open in Browser](https://love2d.org/wiki/HashFunction)
0 commit comments