- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 764 for vbuf (0.1 sec)
-
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) { var msgs []SocketControlMessage i := 0 for i+CmsgLen(0) <= len(b) { h, dbuf, err := socketControlMessageHeaderAndData(b[i:]) if err != nil { return nil, err } m := SocketControlMessage{Header: *h, Data: dbuf} msgs = append(msgs, m) i += cmsgAlignOf(int(h.Len)) } return msgs, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/WindowsResourceHelloWorldApp.groovy
#include <string> #include "hello.h" std::string LoadStringFromResource(UINT stringID) { HINSTANCE instance = GetModuleHandle("hello"); WCHAR * pBuf = NULL; int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0); std::wstring wide = std::wstring(pBuf, len); return std::string(wide.begin(), wide.end()); } void DLL_FUNC hello() { std::string hello = LoadStringFromResource(IDS_HELLO);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.3K bytes - Viewed (0) -
src/encoding/base32/base32_test.go
decoder := NewDecoder(StdEncoding, &br) dbuf := make([]byte, StdEncoding.DecodedLen(len(input))) n, err := decoder.Read(dbuf) testEqual(t, "Decoding of %q err = %v, expected %v", input, err, error(nil)) n, err = decoder.Read(dbuf) testEqual(t, "Read after EOF, n = %d, expected %d", n, 0) testEqual(t, "Read after EOF, err = %v, expected %v", err, io.EOF) n, err = decoder.Read(dbuf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 16:25:54 UTC 2024 - 26K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcHandle.java
} /** * @param fbuf * @throws DcerpcException */ private void setupReceivedFragment ( NdrBuffer fbuf ) throws DcerpcException { fbuf.reset(); fbuf.setIndex(8); fbuf.setLength(fbuf.dec_ndr_short()); if ( this.securityProvider != null ) { this.securityProvider.unwrap(fbuf); } } /**
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jun 30 10:11:57 UTC 2019 - 12.9K bytes - Viewed (0) -
src/os/dir_unix.go
} // Drain the buffer buf := (*d.buf)[d.bufp:d.nbuf] reclen, ok := direntReclen(buf) if !ok || reclen > uint64(len(buf)) { break } rec := buf[:reclen] d.bufp += int(reclen) ino, ok := direntIno(rec) if !ok { break } // When building to wasip1, the host runtime might be running on Windows // or might expose a remote file system which does not have the concept
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:11:45 UTC 2024 - 4.8K bytes - Viewed (0) -
src/net/resolverdialfunc_test.go
if hadQ { resh.RCode = dnsmessage.RCodeSuccess } else { resh.RCode = dnsmessage.RCodeNotImplemented } a.rbuf.Grow(514) a.rbuf.WriteByte('X') // reserved header for beu16 length a.rbuf.WriteByte('Y') // reserved header for beu16 length builder := dnsmessage.NewBuilder(a.rbuf.Bytes(), resh) a.builder = &builder if hadQ { a.q = q a.builder.StartQuestions() err := a.builder.Question(q)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.3K bytes - Viewed (0) -
tools/proto/buf.golang.yaml
John Howard <******@****.***> 1646536079 -0800
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Mar 06 03:07:59 UTC 2022 - 136 bytes - Viewed (0) -
guava/src/com/google/common/io/LineReader.java
Java8Compatibility.clear(cbuf); // The default implementation of Reader#read(CharBuffer) allocates a // temporary char[], so we call Reader#read(char[], int, int) instead. int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf); if (read == -1) { lineBuf.finish(); break; } lineBuf.add(buf, 0, read); } return lines.poll(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIntegrationTest.groovy
{ HMODULE instance = LoadLibraryEx("resources.dll", NULL, LOAD_LIBRARY_AS_DATAFILE); WCHAR * pBuf = NULL; int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0); std::wstring wide = std::wstring(pBuf, len); return std::string(wide.begin(), wide.end()); } int main() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/io/AppendableWriter.java
} /* * Abstract methods from Writer */ @Override public void write(char[] cbuf, int off, int len) throws IOException { checkNotClosed(); // It turns out that creating a new String is usually as fast, or faster // than wrapping cbuf in a light-weight CharSequence. target.append(new String(cbuf, off, len)); } /*
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 3.4K bytes - Viewed (0)