Move dependencies to the top level.

This commit is contained in:
jakcron
2022-04-16 18:27:14 +08:00
parent b67980d3d2
commit 5d62e839e7
844 changed files with 74 additions and 114431 deletions
@@ -1,37 +0,0 @@
/**
* @file StreamUtil.h
* @brief Declaration of tc::io::StreamUtil
* @author Jack (jakcron)
* @version 0.2
* @date 2020/04/06
**/
#pragma once
#include <tc/io/IStream.h>
#include <tc/ArgumentOutOfRangeException.h>
namespace tc { namespace io {
/**
* @class StreamUtil
* @brief Utility class for IStream objects.
**/
class StreamUtil
{
public:
/**
* @brief Get the logical result for seek(), given the current position and stream length.
*
* @param[in] offset A byte offset relative to the origin parameter.
* @param[in] origin A value of type @ref tc::io::SeekOrigin indicating the reference point used to obtain the new position.
* @param[in] current_position The current byte offset relative to the beginning of the stream.
* @param[in] stream_length The length of the stream.
*
* @return The new position within the stream.
*
* @throw tc::ArgumentOutOfRangeException @p origin has an illegal value.
**/
static int64_t getSeekResult(int64_t offset, tc::io::SeekOrigin origin, int64_t current_position, int64_t stream_length);
};
}} // namespace tc::io