John Doe
fc5eeb11a3
Fix copyright notice date
2026-01-21 18:49:11 +00:00
John Doe
6f08eb94c6
Update copyright notice with correct year
2025-07-12 23:19:22 +01:00
Sasha Szpakowski
4f514a6d0d
Include zlib error code when love.data.decompress fails for zlib/gzip data.
2024-12-20 12:34:50 -04:00
Engineer Smith
f8d86a78fc
Made newDataView size optional
2024-07-29 20:28:14 +01:00
Sasha Szpakowski
1e97e09b28
Rework internal module registration to happen in constructors.
2024-02-24 15:21:38 -04:00
Sasha Szpakowski
d2eca731d4
Remove Data:getInt64 and ByteData:setInt64.
...
Lua numbers don't cover the full range for 64 bit integers, so those methods couldn't be reliable.
2024-02-18 17:22:31 -04:00
Sasha Szpakowski
ae6800e0e0
Add Data:performAtomic to lock a mutex while using a Data object.
2024-02-18 17:07:24 -04:00
Sasha Szpakowski
483237ee30
Merge pull request #2018 from EngineerSmith/hash
...
Added container type argument for love.data.hash
2024-02-13 21:20:07 -04:00
EngineerSmith
cbf7e5680a
Added old functionality back, and marked it as deprecated
2024-02-13 01:01:18 +00:00
Sasha Szpakowski
64a30f177f
Merge branch 'main' into 12.0-development
2024-02-10 12:24:48 -04:00
Sasha Szpakowski
94d5864144
update year for copyright notice
2024-02-10 12:13:22 -04:00
EngineerSmith
d125921c24
Added container type to w_hash
2024-02-09 00:29:12 +00:00
Sasha Szpakowski
6aaf0b22bf
Address some compiler warnings
2023-10-21 13:55:43 -03:00
Sasha Szpakowski
6e80d85110
Merge branch 'main' into 12.0-development
2023-08-19 21:35:55 -03:00
ImagicTheCat
22e68868e1
Fix/improve SHA-384/512 hashing.
2023-05-24 16:29:23 +02:00
ImagicTheCat
ade382072d
Fix/improve SHA-224/256 hashing.
2023-05-24 16:10:53 +02:00
ImagicTheCat
4304132f8f
Fix/improve SHA1 hashing.
2023-05-24 16:09:34 +02:00
ImagicTheCat
f1a5e47aae
Fix/improve MD5 hashing.
2023-05-24 16:08:27 +02:00
Sasha Szpakowski
abf9980cc2
Fix ByteData:set* error message.
2023-02-20 10:06:09 -04:00
Sasha Szpakowski
bec488519d
Add a variant of love.data.pack which takes an existing ByteData object.
...
#1594
2023-02-19 22:15:07 -04:00
Sasha Szpakowski
1909e80409
Add ByteData:setString.
2023-02-19 20:26:35 -04:00
Sasha Szpakowski
78de7bdf3c
Move ByteData float/int getter methods to Data.
2023-02-19 19:52:07 -04:00
Sasha Szpakowski
139c68d197
better error checking for Data:getString's size parameter.
2023-02-13 19:41:25 -04:00
Sasha Szpakowski
f6416dd584
Add optional byte offset and size parameters to Data:getString.
2023-02-13 19:39:31 -04:00
Sasha Szpakowski
02e8acc0d2
Add ByteData methods for getting/setting number values.
...
See #1594
2023-02-13 19:37:59 -04:00
Sasha Szpakowski
95d44c2c2d
very minor compile speed improvements
2023-02-11 16:29:24 -04:00
Sasha Szpakowski
f6cdbdc868
Merge branch 'main' into 12.0-development
2022-12-31 22:46:34 -04:00
Sasha Szpakowski
0b75f6cfa5
Missed some files...
2022-12-31 22:36:48 -04:00
Sasha Szpakowski
c823dbca96
Update copyright year for 2023
2022-12-31 22:25:49 -04:00
Alex Szpakowski
69c4a496dd
Fix a few minor compiler warnings
2022-06-18 17:59:55 -03:00
Alex Szpakowski
1e85893abb
Add new DataStream subclass of Stream, internal-only for now.
2022-04-21 19:52:46 -03:00
Alex Szpakowski
ceb23eee48
Add new Stream base class, internal-only for now.
2022-04-21 19:52:04 -03:00
Alex Szpakowski
7f3538d2ba
Merge branch 'main' into 12.0-development
2022-01-05 21:10:27 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
52101b2563
Add love.graphics.copyTextureToBuffer and copyBufferToTexture.
2021-12-28 12:46:56 -04:00
Alex Szpakowski
c8038f22df
Merge branch 'main' into 12.0-development
2021-12-24 11:35:35 -04:00
Alex Szpakowski
ebd5f13456
Fix missing ByteData:clone and DataView:clone implementations.
...
Fixes #1754
2021-12-07 19:51:40 -04:00
Alex Szpakowski
9b4aea8f17
Missed some copyright date updates
2021-04-07 20:34:24 -03:00
Alex Szpakowski
21f5ba86d3
Merge branch 'master' into 12.0-development
2021-04-07 20:33:44 -03:00
Alex Szpakowski
f89aabb0bb
Update copyright year for 2021
2021-04-04 16:14:45 -03:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Alex Szpakowski
cb4b45dcf1
Add Data:getFFIPointer. Similar to Data:getPointer but returns a cdata pointer directly (or nil if the FFI isn't available).
...
It should be preferred instead of Data:getPointer because the latter uses lightuserdata which can't store more all possible memory addresses on some new arm64 architectures, when LuaJIT is used.
2019-07-20 10:47:58 -03:00
Bart van Strien
3d64ad0a3e
Properly propagate errors when creating a DataView ( fixes #1476 )
...
The C++ code already threw an exception when creating a DataView with size 0, but the corresponding lua wrapper ignored it. Now it's correctly turned into a lua error.
2019-03-02 13:47:49 +01:00
Alex Szpakowski
0752f27bdf
Update copyright year for 2019
2019-01-03 21:09:05 -04:00
Alex Szpakowski
5d5c2f9a96
math and data module instances are now deleted when they have no more Lua references (matches the behaviour of other modules.) Fixes the deprecation system not fully restarting when love.event.quit("restart") is called.
...
Resolves issue #1462 .
2018-12-17 16:44:13 -04:00
Alex Szpakowski
2e190f4fa0
Merged in PabloMayobre/love-1/PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077 (pull request #117 )
...
Fixed hash functions in data module
Approved-by: Bart van Strien <bart.bes+projects@gmail.com >
Approved-by: Tae Hanazono <auahdark687291@gmail.com >
2018-12-06 21:50:18 +00:00
Pablo Mayobre
ed68ac6b28
Fix hash functions. The length appended at the end was the modified length (taking into consideration the appended bit) instead of the original length as it should be.
...
--HG--
branch : PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077
2018-11-30 03:54:58 +00:00
Michael Vetter
a1d6da4624
Silence compiler warning
...
Silence compiler warnings about methods with return value and potentially not returning anything.
This happens with gcc8 and the `-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -std=c++11` flags passed to it by default on openSUSE.
2018-11-29 17:07:20 +01:00
Pablo Mayobre
43633d7b44
Fix typo: paddedlength -> paddedLength
...
--HG--
branch : PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077
2018-11-25 19:03:30 +00:00
Pablo Mayobre
7c1603537f
Fixed hash functions in data module, not taking the appended 1bit into consideration when calculating padding length. Fixes #1453
...
--HG--
branch : PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077
2018-11-25 18:46:33 +00:00