以下成員源於類 QByteArrayView 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(棄用)
QByteArrayView
|
left (qsizetype length ) const |
(棄用)
QByteArrayView
|
mid (qsizetype start , qsizetype length = -1) const |
(棄用)
QByteArrayView
|
right (qsizetype length ) const |
[constexpr, since 6.5]
QByteArrayView
QByteArrayView::
left
(
qsizetype
length
) const
This function is deprecated. We strongly advise against using it in new code.
使用 first () instead in new code.
Returns the subarray of length length starting at position 0 in this object.
The entire byte array view is returned if length >= size (),或小於 0。
This function was introduced in Qt 6.5.
另請參閱 first (), last (), sliced (), startsWith (), chopped (), chop (),和 truncate ().
[constexpr, since 6.5]
QByteArrayView
QByteArrayView::
mid
(
qsizetype
start
,
qsizetype
length
= -1) const
This function is deprecated. We strongly advise against using it in new code.
使用 sliced () instead in new code.
Returns the subarray of length length 起始於位置 start 在此對象。
Returns an empty byte array view if start exceeds the length of the byte array view. If there are less than length characters available in the byte array view starting at start ,或者若 length is negative (default), the function returns all characters that are available from start .
This function was introduced in Qt 6.5.
另請參閱 first (), last (), sliced (), chopped (), chop (),和 truncate ().
[constexpr, since 6.5]
QByteArrayView
QByteArrayView::
right
(
qsizetype
length
) const
This function is deprecated. We strongly advise against using it in new code.
使用 last () instead in new code.
Returns the subarray of length length 起始於位置 size () - length 在此對象。
The entire byte array view is returned if length >= size (),或小於 0。
This function was introduced in Qt 6.5.
另請參閱 first (), last (), sliced (), endsWith (), chopped (), chop (),和 truncate ().