/system/netd/libnetdutils/include/netdutils/ |
Slice.h | 31 // Slice represents memory as a half-closed interval [base, limit). 33 // Note that without manually invoking the Slice() constructor, it is 34 // impossible to increase the size of a slice. This guarantees that 35 // applications that properly use the slice API will never access 36 // memory outside of a slice. 38 // Note that const Slice still wraps mutable memory, however copy 39 // assignment and move assignment to slice are disabled. 40 class Slice { 42 Slice() = default; 44 // Create a slice beginning at base and continuing to but not including limi [all...] |
Netlink.h | 24 #include "netdutils/Slice.h" 30 // invoked with an aligned and deserialized header along with a Slice 34 void forEachNetlinkMessage(const Slice buf, 35 const std::function<void(const nlmsghdr&, const Slice)>& onMsg); 38 // invoked with an aligned and deserialized header along with a Slice 42 void forEachNetlinkAttribute(const Slice buf, 43 const std::function<void(const nlattr&, const Slice)>& onAttr);
|
MockSyscalls.h | 49 MOCK_CONST_METHOD2(write, StatusOr<size_t>(Fd fd, const Slice buf)); 50 MOCK_CONST_METHOD2(read, StatusOr<Slice>(Fd fd, const Slice buf)); 51 MOCK_CONST_METHOD5(sendto, StatusOr<size_t>(Fd sock, const Slice buf, int flags, 53 MOCK_CONST_METHOD5(recvfrom, StatusOr<Slice>(Fd sock, const Slice dst, int flags, sockaddr* src,
|
Syscalls.h | 28 #include "netdutils/Slice.h" 60 virtual StatusOr<size_t> write(Fd fd, const Slice buf) const = 0; 62 virtual StatusOr<Slice> read(Fd fd, const Slice buf) const = 0; 64 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, 67 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src, 147 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const SockaddrT& dst) const { 152 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags) const [all...] |
/system/netd/libnetdutils/ |
SliceTest.cpp | 22 #include "netdutils/Slice.h" 35 Slice s1 = makeSlice(mRaw); 36 Slice s2 = makeSlice(mRaw); 39 ss << Slice(); 40 EXPECT_EQ("Slice[base: 0x0, limit: 0x0, size: 0x0]", ss.str()); 56 Slice s1 = makeSlice(mRaw); 57 Slice s2(s1); 58 Slice s3 = s2; 59 const Slice s4(s3); 60 const Slice s5 = s4 [all...] |
Slice.cpp | 19 #include "netdutils/Slice.h" 34 std::string toString(const Slice s) { 38 std::string toHex(const Slice s, int wrap) { 39 Slice tail = s; 54 std::ostream& operator<<(std::ostream& os, const Slice& slice) { 55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base()) 56 << ", limit: " << reinterpret_cast<void*>(slice.limit()) << ", size: 0x" 57 << slice.size() << "]" << std::dec [all...] |
Netlink.cpp | 26 void forEachNetlinkMessage(const Slice buf, 27 const std::function<void(const nlmsghdr&, const Slice)>& onMsg) { 28 Slice tail = buf; 38 void forEachNetlinkAttribute(const Slice buf, 39 const std::function<void(const nlattr&, const Slice)>& onAttr) { 40 Slice tail = buf;
|
Syscalls.cpp | 112 StatusOr<size_t> write(Fd fd, const Slice buf) const override { 120 StatusOr<Slice> read(Fd fd, const Slice buf) const override { 125 return Slice(buf.base(), rv); 128 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, 137 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src,
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug146.go | 10 type Slice []byte; 12 b := Slice(a[0:]); // This should be OK. 13 c := Slice(a); // ERROR "invalid|illegal|cannot"
|
issue5515.go | 16 rs := Slice(b) 20 type Slice []T 22 func (s Slice) Swap(i, j int) {
|
issue14405.go | 11 Slice [1 << 20][]int
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug146.go | 10 type Slice []byte; 12 b := Slice(a[0:]); // This should be OK. 13 c := Slice(a); // ERROR "invalid|illegal|cannot"
|
issue5515.go | 16 rs := Slice(b) 20 type Slice []T 22 func (s Slice) Swap(i, j int) {
|
issue14405.go | 11 Slice [1 << 20][]int
|
/prebuilts/go/darwin-x86/src/cmd/asm/internal/lex/ |
slice.go | 9 // A Slice reads from a slice of Tokens. 10 type Slice struct { 17 func NewSlice(fileName string, line int, tokens []Token) *Slice { 18 return &Slice{ 26 func (s *Slice) Next() ScanToken { 34 func (s *Slice) Text() string { 38 func (s *Slice) File() string { 42 func (s *Slice) Line() int { 46 func (s *Slice) Col() int [all...] |
/prebuilts/go/linux-x86/src/cmd/asm/internal/lex/ |
slice.go | 9 // A Slice reads from a slice of Tokens. 10 type Slice struct { 17 func NewSlice(fileName string, line int, tokens []Token) *Slice { 18 return &Slice{ 26 func (s *Slice) Next() ScanToken { 34 func (s *Slice) Text() string { 38 func (s *Slice) File() string { 42 func (s *Slice) Line() int { 46 func (s *Slice) Col() int [all...] |
/system/netd/server/ |
NetlinkListener.h | 26 #include <netdutils/Slice.h> 35 using DispatchFn = std::function<void(const nlmsghdr& nlmsg, const netdutils::Slice msg)>; 40 virtual netdutils::Status send(const netdutils::Slice msg) = 0; 77 netdutils::Status send(const netdutils::Slice msg) override;
|
NFLogListenerTest.cpp | 44 using netdutils::Slice; 58 MOCK_METHOD1(send, netdutils::Status(const netdutils::Slice msg)); 79 static StatusOr<size_t> sendOk(const Slice buf) { return buf.size(); } 108 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const netdutils::Slice) {}; 114 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const netdutils::Slice) {}; 123 const netdutils::Slice) { 135 const auto dispatchFn = [](const nlmsghdr&, const nfgenmsg&, const netdutils::Slice) {
|
NetlinkListener.cpp | 34 using netdutils::Slice; 52 const NetlinkListener::DispatchFn kDefaultDispatchFn = [](const nlmsghdr& nlmsg, const Slice) { 62 const auto rxErrorHandler = [](const nlmsghdr& nlmsg, const Slice msg) { 78 Status NetlinkListener::send(const Slice msg) { 102 const auto rxHandler = [this](const nlmsghdr& nlmsg, const Slice& buf) {
|
/prebuilts/go/darwin-x86/test/ |
named.go | 18 type Slice []byte 29 func asSlice(Slice) {} 44 func isSlice(x interface{}) { _ = x.(Slice) } 55 slice Slice = make(Slice, 10) 237 asSlice(slice) 238 isSlice(slice) 239 asSlice(make(Slice, 5)) 240 isSlice(make(Slice, 5) [all...] |
/prebuilts/go/linux-x86/test/ |
named.go | 18 type Slice []byte 29 func asSlice(Slice) {} 44 func isSlice(x interface{}) { _ = x.(Slice) } 55 slice Slice = make(Slice, 10) 237 asSlice(slice) 238 isSlice(slice) 239 asSlice(make(Slice, 5)) 240 isSlice(make(Slice, 5) [all...] |
/prebuilts/go/darwin-x86/src/sort/ |
example_test.go | 36 sort.Slice(people, func(i, j int) bool { return people[i].Name < people[j].Name }) 39 sort.Slice(people, func(i, j int) bool { return people[i].Age < people[j].Age })
|
/prebuilts/go/linux-x86/src/sort/ |
example_test.go | 36 sort.Slice(people, func(i, j int) bool { return people[i].Name < people[j].Name }) 39 sort.Slice(people, func(i, j int) bool { return people[i].Age < people[j].Age })
|
/external/sfntly/cpp/src/sfntly/data/ |
font_data.h | 63 // Makes a slice of this FontData. The returned slice will share the data with 65 // @param offset the start of the slice 66 // @param length the number of bytes in the slice 67 // @return a slice of the original FontData 68 virtual CALLER_ATTACH FontData* Slice(int32_t offset, int32_t length) = 0; 70 // Makes a bottom bound only slice of this array. The returned slice will 72 // @param offset the start of the slice 73 // @return a slice of the original FontDat [all...] |
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
index_sub_table_format2.cc | 33 ReadableFontDataPtr slice; local 34 slice.Attach(down_cast<ReadableFontData*>( 35 data_->Slice(EblcTable::Offset::kIndexSubTable2_bigGlyphMetrics, 37 BigGlyphMetricsPtr output = new BigGlyphMetrics(slice); 114 data.Attach(down_cast<WritableFontData*>(InternalWriteData()->Slice( 141 data->Slice(index_sub_table_offset, length))); 164 data->Slice(index_sub_table_offset, length))); 198 InternalReadData()->Slice(size))); 199 target.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); 202 WritableFontDataPtr slice; local [all...] |