summaryrefslogtreecommitdiff
path: root/AK/ScopeGuard.h
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-08-15 18:38:24 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-15 21:21:18 +0200
commitfff581cd725db6b9cc1e1fd25503c68ec2d044d3 (patch)
tree0c0a510f5cbd1c2c6c1613b11209655624eda893 /AK/ScopeGuard.h
parent525d51bbb526912946c491e502b57cf439ab3906 (diff)
downloadserenity-fff581cd725db6b9cc1e1fd25503c68ec2d044d3.zip
AK: Rename span() to bytes() when appropriate.
I originally defined the bytes() method for the String class, because it made it obvious that it's a span of bytes instead of span of characters. This commit makes this more consistent by defining a bytes() method when the type of the span is known to be u8. Additionaly, the cast operator to Bytes is overloaded for ByteBuffer and such.
Diffstat (limited to 'AK/ScopeGuard.h')
0 files changed, 0 insertions, 0 deletions