/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanIovArray() { if (iovArray == null) { iovArray = new IovArray(); } else { iovArray.clear(); } return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanIovArray() { if (iovArray == null) { iovArray = new IovArray(); } else { iovArray.clear(); } return iovArray; }
/** * Init this instance and return {@code true} if the init was successful. */ private boolean init(ByteBuf buf, InetSocketAddress recipient) { array.clear(); if (!array.add(buf)) { return false; } // always start from offset 0 memoryAddress = array.memoryAddress(0); count = array.count(); InetAddress address = recipient.getAddress(); if (address instanceof Inet6Address) { addr = address.getAddress(); scopeId = ((Inet6Address) address).getScopeId(); } else { addr = ipv4MappedIpv6Address(address.getAddress()); scopeId = 0; } port = recipient.getPort(); return true; } }
/** * Init this instance and return {@code true} if the init was successful. */ private boolean init(ByteBuf buf, InetSocketAddress recipient) { array.clear(); if (!array.add(buf)) { return false; } // always start from offset 0 memoryAddress = array.memoryAddress(0); count = array.count(); InetAddress address = recipient.getAddress(); if (address instanceof Inet6Address) { addr = address.getAddress(); scopeId = ((Inet6Address) address).getScopeId(); } else { addr = ipv4MappedIpv6Address(address.getAddress()); scopeId = 0; } port = recipient.getPort(); return true; } }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanIovArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Return a cleared {@link IovArray} that can be used for writes in this {@link EventLoop}. */ IovArray cleanArray() { iovArray.clear(); return iovArray; }
/** * Init this instance and return {@code true} if the init was successful. */ private boolean init(ByteBuf buf, InetSocketAddress recipient) { array.clear(); if (!array.add(buf)) { return false; } // always start from offset 0 memoryAddress = array.memoryAddress(0); count = array.count(); InetAddress address = recipient.getAddress(); if (address instanceof Inet6Address) { addr = address.getAddress(); scopeId = ((Inet6Address) address).getScopeId(); } else { addr = ipv4MappedIpv6Address(address.getAddress()); scopeId = 0; } port = recipient.getPort(); return true; } }
/** * Init this instance and return {@code true} if the init was successful. */ private boolean init(ByteBuf buf, InetSocketAddress recipient) { array.clear(); if (!array.add(buf)) { return false; } // always start from offset 0 memoryAddress = array.memoryAddress(0); count = array.count(); InetAddress address = recipient.getAddress(); if (address instanceof Inet6Address) { addr = address.getAddress(); scopeId = ((Inet6Address) address).getScopeId(); } else { addr = ipv4MappedIpv6Address(address.getAddress()); scopeId = 0; } port = recipient.getPort(); return true; } }
/** * Init this instance and return {@code true} if the init was successful. */ private boolean init(ByteBuf buf, InetSocketAddress recipient) { array.clear(); if (!array.add(buf)) { return false; } // always start from offset 0 memoryAddress = array.memoryAddress(0); count = array.count(); InetAddress address = recipient.getAddress(); if (address instanceof Inet6Address) { addr = address.getAddress(); scopeId = ((Inet6Address) address).getScopeId(); } else { addr = ipv4MappedIpv6Address(address.getAddress()); scopeId = 0; } port = recipient.getPort(); return true; } }