reuk
540830506b
MemoryOutputStream: Avoid integer overflow which may result in incorrect size after expansion
2025-11-26 10:32:20 +00:00
reuk
9715b901a8
OutputStream: Fix implementation of writeText when converting to UTF-16
2025-11-19 10:32:59 +00:00
reuk
83e5264c86
Formatting: Remove double-dots from comments and other strings
2025-11-18 15:47:42 +00:00
Tom Poole
94d98a2b10
Update licensing information
2024-04-16 11:39:35 +01:00
Tom Poole
6bf9bb9a2e
Add final specifiers in implementation files
2023-10-10 16:12:38 +01:00
Tom Poole
4153d59e39
Formatting
2023-10-02 15:42:20 +01:00
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible
2023-04-04 19:55:11 +01:00
reuk
84d4c8794a
MemoryOutputStream: Avoid allocating unnecessarily large buffers
...
Previously, we would allocate storage large enough to fit the entire
contents of the input stream, even if this was lower than the
maxNumBytesToWrite.
2022-12-14 11:12:33 +00:00
attila
bfe163cdad
MemoryOutputStream: Fix preallocating overly large buffer
2022-09-13 15:20:57 +02:00
reuk
d60955c5eb
Android: Add AndroidDocumentInputSource, allowing for interop between the AudioThumbnail and AndroidDocument types
2022-08-04 22:51:16 +01:00
Tom Poole
dea3fe60e4
Update copyright banners
2022-04-04 12:36:32 +01:00
ed
b9542ccc4c
Update code to use C++14 [[deprecated]] attribute
...
This commit removes the various compiler-specific JUCE_DEPRECATED macros and replaces them with C++14's deprecated attribute. It also removes the JUCE_CATCH_DEPRECATED_CODE_MISUSE flag as we can rely on the override specifier catching usage of these old virtual methods, and tidies up the DOXYGEN preprocessor checks as they were inconsistent across the codebase.
2021-09-29 16:14:00 +01:00
reuk
930a3299f2
Reservoir: Factor out reservoir management code
2021-09-27 13:20:47 +01:00
ed
0fc1ede50f
Used MemoryBlock::isEmpty() in a few places
2021-04-22 18:22:06 +01:00
reuk
4cf66d6522
Cleanup: Remove redundant inlines
2020-04-27 10:22:06 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
5af01b9b16
Demos: Convey proper ownership semantics
2020-03-12 18:30:45 +00:00
ed
f2440ec8e2
Initialise dataSize in MemoryInputStream constructor that takes a MemoryBlock rvalue reference
2020-02-27 15:09:13 +00:00
ed
e36736e0ec
Fixed some typos
2020-01-06 14:04:16 +00:00
jules
ac519e541a
Added a constructor to MemoryInputStream that will move from a MemoryBlock
2019-07-02 13:54:38 +01:00
jules
f746672c19
Added an overloaded read method to InputStream which takes a size_t as the size parameter, rather than an int
2019-06-13 10:10:26 +01:00
Lukasz Kozakiewicz
4ff0c9c881
Fix a crash on shutdown when DanglingStreamChecker gets destroyed before LeakCounter instances.
2019-05-20 17:30:20 +02:00
ed
497a1b3fb7
Added juce_UnitTestCategories.h to replace raw strings used for test categories
2019-04-03 15:10:40 +01:00
ed
f3af250ff7
Tidied up unit test code layout
2019-04-02 11:54:29 +01:00
ed
a234721110
Added various clang-tidy modernize-* fixes
2019-01-31 15:15:31 +00:00
jules
cadac817c6
Enabled some more warning flags in Xcode, and fixed the problems they caused
2019-01-11 09:52:10 +00:00
ed
eaf0f990d4
Replaced all uses of static_cast<Type&&> with std::move
2018-11-28 17:29:20 +00:00
jules
dca741a01d
Made an assertion in MemoryOutputStream::write() slightly more forgiving
2018-09-06 22:01:19 +01:00
ed
a64183914a
Added unit tests to the InputStream classes
2018-09-06 09:35:30 +01:00
ed
e8e69410bb
Override InputStream::skipNextBytes() in MemoryInputStream to call setPosition() as it will be faster than the base class implementation
2018-09-06 09:35:30 +01:00
ed
294a6a9ca3
Corrected the documentation for InputStream::skipNextBytes()
2018-09-06 09:35:30 +01:00
ed
ba85dd7a05
Added some missing override keywords
2018-09-03 10:54:16 +01:00
Tom Poole
5c26cd5586
Reverted 6ca7af73cf "Optimised the base class implementation of InputStream::skipNextBytes() a bit"
2018-08-29 17:51:52 +01:00
Tom Poole
0e1722e387
Multiple spelling fixes
2018-08-20 18:16:24 +01:00
ed
2f2250662e
Updated the documentation of InputStream::skipNextBytes() to reflect the changes in the last commit
2018-08-15 15:39:48 +01:00
ed
6ca7af73cf
Optimised the base class implementation of InputStream::skipNextBytes() a bit
2018-08-15 15:35:55 +01:00
jules
efda09a512
Added a parameter to File::appendText, File::replaceWithText and OutputStream::writeText to provide control over if/how line-feeds are replaced when writing text to a file
2018-04-16 12:26:42 +01:00
Noah Dayan
db1e454f45
Fixed a documentation tag in URLInputSource
2018-03-29 15:19:32 +01:00
ed
cdbc28c18b
Add documentation tags
2018-03-15 12:10:32 +00:00
hogliux
f802c6950b
Add URLInputSource class
2018-03-13 15:44:59 +00:00
jules
08a1b7bb6d
Improved error handling in BufferedInputStream and tidied up a few classes in the streams folder
2017-11-02 12:14:10 +00:00
jules
a03fd6b0a3
Fixed a mistake in InputStream::readNextLine()
2017-10-17 09:50:30 +01:00
jules
a7c56fd89b
Simplified and tidied up a few things in input/output streams and MemoryBlock
2017-10-13 12:55:46 +01:00
jules
369d59f656
Added a template to allow the HeapBlock class to be given signed ints or other types that are not size_t for its size parameters
2017-10-11 12:10:58 +01:00
jules
3d7c777238
Some light modernisation of a bunch of old code
2017-10-04 12:47:43 +01:00
jules
eda613c6db
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
2017-09-08 08:59:55 +01:00
ed
6bfcd820b4
Unit tests: Added an optional argument to the UnitTest constructor to specify a category and methods to get and run unit tests in a specified category. Updated the built-in JUCE unit tests and Demo project to use categories.
2017-07-20 17:24:05 +01:00
jules
3675c0a841
Added method BufferedInputStream::peekByte(), and tidied up some internal code in that class
2017-06-29 15:16:35 +01:00
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
2017-04-27 14:43:04 +01:00
hogliux
2da1bc5f41
Replace include guards with "#pragma once"
2017-02-01 17:18:07 +00:00