Obsolete Members for QByteArrayView
QByteArrayView 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.
공개 함수
(since 6.5, deprecated in 6.5) QByteArrayView | left(qsizetype length) const |
(since 6.5, deprecated in 6.5) QByteArrayView | mid(qsizetype start, qsizetype length = -1) const |
(since 6.5, deprecated in 6.5) QByteArrayView | right(qsizetype length) const |
멤버 함수 설명
[constexpr, since 6.5, deprecated in 6.5] QByteArrayView QByteArrayView::left(qsizetype length) const
이 함수는 6.5 버전부터 사용이 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
새로운 코드에서는 대신 ` first()`를 사용하십시오.
이 객체의 0번 위치부터 시작하여 길이가 ` length `인 부분 배열을 반환합니다.
length 가 size()보다 크거나 같거나, 0보다 작은 경우 전체 바이트 배열 뷰가 반환됩니다.
이 함수는 Qt 6.5에서 도입되었습니다.
first(), last(), sliced(), startsWith(), chopped(), chop(), truncate() 및 slice()도 참조하십시오 .
[constexpr, since 6.5, deprecated in 6.5] QByteArrayView QByteArrayView::mid(qsizetype start, qsizetype length = -1) const
이 함수는 6.5 버전부터 사용이 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
새로운 코드에서는 대신 ` sliced()`를 사용하십시오.
이 객체에서 위치 start 부터 시작하는 길이 length 의 부분 배열을 반환합니다.
start 가 바이트 배열 뷰의 길이를 초과하는 경우, 빈 바이트 배열 뷰를 반환합니다. start 에서 시작하는 바이트 배열 뷰에 사용 가능한 문자가 length 보다 적거나, length 가 음수(기본값)인 경우, 이 함수는 start 에서 사용 가능한 모든 문자를 반환합니다.
이 함수는 Qt 6.5에서 도입되었습니다.
first(), last(), sliced(), chopped(), chop(), truncate() 및 slice()도 참조하십시오 .
[constexpr, since 6.5, deprecated in 6.5] QByteArrayView QByteArrayView::right(qsizetype length) const
이 함수는 6.5 버전부터 사용이 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것이 좋습니다.
새로운 코드에서는 대신 last()을 사용하십시오.
이 객체에서 size() - length 위치부터 시작하는, 길이가 length 인 부분 배열을 반환합니다.
length 가 size()보다 크거나 같거나 0보다 작은 경우, 전체 바이트 배열 뷰가 반환됩니다.
이 함수는 Qt 6.5에서 도입되었습니다.
first(), last(), sliced(), endsWith(), chopped(), chop(), truncate() 및 slice()도 참조하십시오 .
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.