DoxigAlpha

eql

Function parameters

Parameters

#

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
tcpConnectToHost
All memory allocated with `allocator` will be freed before this function returns.
getAddressList
Call `AddressList.deinit` on the result.

Error sets in this namespace

Error Sets

#

= switch (native_os) { .windows => builtin.os.version_range.windows.isAtLeast(.win10_rs4) orelse false, .wasi => false, else => true, }

Values

#
has_unix_sockets
= switch (native_os) { .windows => builtin.os.version_range.windows.isAtLeast(.win10_rs4) orelse false, .wasi => false, else => true, }

Source

Implementation

#
pub fn eql(a: Address, b: Address) bool {
    const a_bytes = @as([*]const u8, @ptrCast(&a.any))[0..a.getOsSockLen()];
    const b_bytes = @as([*]const u8, @ptrCast(&b.any))[0..b.getOsSockLen()];
    return mem.eql(u8, a_bytes, b_bytes);
}