mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 02:45:07 +00:00
LibIPC: Remove use of ByteBuffer::wrap()
ByteBuffer::wrap() was useful before we had Span. Let's see if we can't get rid of some more ByteBuffer wrapping.
This commit is contained in:
parent
d893498e57
commit
0e4ecca336
2 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,6 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Function.h>
|
||||
#include <AK/GenericLexer.h>
|
||||
#include <AK/HashMap.h>
|
||||
|
@ -437,7 +436,7 @@ public:
|
|||
static String static_name() { return "@endpoint.name@"; }
|
||||
virtual String name() const override { return "@endpoint.name@"; }
|
||||
|
||||
static OwnPtr<IPC::Message> decode_message(const ByteBuffer& buffer, int sockfd)
|
||||
static OwnPtr<IPC::Message> decode_message(ReadonlyBytes buffer, int sockfd)
|
||||
{
|
||||
InputMemoryStream stream { buffer };
|
||||
i32 message_endpoint_magic = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue