// this function simpler. In particular, it accepts and returns the // new length so that the old length is not live (does not need to be // spilled/restored) and the new length is returned (also does not need // to be spilled/restored). funcgrowslice(oldPtr unsafe.Pointer, newLen...
osscan.cc:主要负责os指纹的解析、对比函数,可直接看如下的函数定义。 /* Parses a single fingerprint from the memory region given. If anon-null fingerprint is returned, the user is in charge of freeing itwhen done. This function does not require the fingerprint to be 100%complete since it is...
Mutex connPerHostCount map[connectMethodKey]int connPerHostAvailable map[connectMethodKey]chan struct{} // Proxy specifies a function to return a proxy for a given // Request. If the function returns a non-nil error, the // request is aborted with the provided error. // // The proxy ...
vars0string// a package-level variable// A demo purpose function.funcf(s1string){ s0 = s1[:50]// Now, s0 shares the same underlying memory block// with s1. Although s1 is not alive now, but s0// is still alive, so the memory block they share// couldn't be collected, though t...
The command line name for each parameter, along with the default values and simple function descriptions are as follows:--kcp-key="secrect" pre-shared secret between client and server --kcp-method="aes" encrypt/decrypt method, can be: aes, aes-128, aes-192, salsa20, blowfish, Twofish, ...
As preparation for the concurrent garbage collector scheduled for the 1.5 release, writes to pointer values in the heap are now done by a function call, called a write barrier, rather than directly from the function updating the value. In this next release, this will permit the garbage collec...
keys [8]keytype values [8]valuetype overflow uintptr } 每个桶里包括8个key和8个value,和对应的8个tophash值,其中tophash值是hash值的高8位 tophash:用于map查找中第一次比对,如果tophash值相同,接下来比对key值。 桶中数据的存储:8个key放在一起,8个value放在一起,作用是减少填充的空隙,节省空间。
parameters. The functions will be called in order using the return values from earlier functions as parameters for later functions. Only the functions that are needed to be called in order to be able to call the last function in the chain are invoked. Then the last function in the chain ...
context package function Background() returns a empty Context which implements the Context interface 上下文包 Background() 返回一个空的 Context,该上下文实现 Context 接口 It has no values 它没有值 It is never canceled 它永不取消 It has no deadline 它没有截止日期 ...
Show documentation for text/template's Newfunction.godoctext/template new # Two argumentsShowdocumentationfortext/template's New function. At least in the current tree, these invocations all print the documentation for json.Decoder'sDecodemethod:godoc json.Decoder.Decodegodoc json.decoder.decodegodoc...