_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c180100
test
// setHeapPtr records that the memory at heap address a contains a pointer.
{ "resource": "" }
c180101
test
// findHeapInfo finds the heapInfo structure for a. // Returns nil if a is not a heap address.
{ "resource": "" }
c180102
test
// Same as findHeapInfo, but allocates the heapInfo if it // hasn't been allocated yet.
{ "resource": "" }
c180103
test
// Generate the name the runtime uses for a dwarf type. The DWARF generator // and the runtime use slightly different names for the same underlying type.
{ "resource": "" }
c180104
test
// readRuntimeConstants populates the p.rtConstants map.
{ "resource": "" }
c180105
test
// add records that PCs in the range [min,max) map to function f.
{ "resource": "" }
c180106
test
// sort must be called after all the adds, but before any find.
{ "resource": "" }
c180107
test
// Finds a Func for the given address. Sort must have been called already.
{ "resource": "" }
c180108
test
// read parses a pctab from the core file at address data.
{ "resource": "" }
c180109
test
// readVarint reads a varint from the core file. // val is the value, n is the number of bytes consumed.
{ "resource": "" }
c180110
test
// useLine is like cobra.Command.UseLine but tweaked to use commandPath.
{ "resource": "" }
c180111
test
// commandPath is like cobra.Command.CommandPath but tweaked to // use c.Use instead of c.Name for the root command so it works // with viewcore's unusual command structure.
{ "resource": "" }
c180112
test
// readCore reads corefile and returns core and gocore process states.
{ "resource": "" }
c180113
test
// typeName returns a string representing the type of this object.
{ "resource": "" }
c180114
test
// fieldName returns the name of the field at offset off in x.
{ "resource": "" }
c180115
test
// typeFieldName returns the name of the field at offset off in t.
{ "resource": "" }
c180116
test
// FindFunc returns the function which contains the code at address pc, if any.
{ "resource": "" }
c180117
test
// Core takes a loaded core file and extracts Go information from it.
{ "resource": "" }
c180118
test
// Address returns the address that a region of pointer type points to.
{ "resource": "" }
c180119
test
// Int returns the int value stored in r.
{ "resource": "" }
c180120
test
// Uintptr returns the uintptr value stored in r.
{ "resource": "" }
c180121
test
// Cast the region to the given type.
{ "resource": "" }
c180122
test
// Deref loads from a pointer. r must contain a pointer.
{ "resource": "" }
c180123
test
// Uint64 returns the uint64 value stored in r. // r must have type uint64.
{ "resource": "" }
c180124
test
// Uint32 returns the uint32 value stored in r. // r must have type uint32.
{ "resource": "" }
c180125
test
// Int32 returns the int32 value stored in r. // r must have type int32.
{ "resource": "" }
c180126
test
// Uint16 returns the uint16 value stored in r. // r must have type uint16.
{ "resource": "" }
c180127
test
// Uint8 returns the uint8 value stored in r. // r must have type uint8.
{ "resource": "" }
c180128
test
// String returns the value of the string stored in r.
{ "resource": "" }
c180129
test
// SlicePtr returns the pointer inside a slice. r must contain a slice.
{ "resource": "" }
c180130
test
// SliceLen returns the length of a slice. r must contain a slice.
{ "resource": "" }
c180131
test
// Field returns the part of r which contains the field f. // r must contain a struct, and f must be one of its fields.
{ "resource": "" }
c180132
test
// ReadUint8 returns a uint8 read from address a of the inferior.
{ "resource": "" }
c180133
test
// ReadUint16 returns a uint16 read from address a of the inferior.
{ "resource": "" }
c180134
test
// ReadUint32 returns a uint32 read from address a of the inferior.
{ "resource": "" }
c180135
test
// ReadUint64 returns a uint64 read from address a of the inferior.
{ "resource": "" }
c180136
test
// ReadInt8 returns an int8 read from address a of the inferior.
{ "resource": "" }
c180137
test
// ReadInt16 returns an int16 read from address a of the inferior.
{ "resource": "" }
c180138
test
// ReadInt32 returns an int32 read from address a of the inferior.
{ "resource": "" }
c180139
test
// ReadInt64 returns an int64 read from address a of the inferior.
{ "resource": "" }
c180140
test
// ReadUintptr returns a uint of pointer size read from address a of the inferior.
{ "resource": "" }
c180141
test
// ReadPtr returns a pointer loaded from address a of the inferior.
{ "resource": "" }
c180142
test
// ReadCString reads a null-terminated string starting at address a.
{ "resource": "" }
c180143
test
// Source returns the backing file and offset for the mapping, or "", 0 if none.
{ "resource": "" }
c180144
test
// findMapping is simple enough that it inlines.
{ "resource": "" }
c180145
test
// Max returns the larger of a and b.
{ "resource": "" }
c180146
test
// Min returns the smaller of a and b.
{ "resource": "" }
c180147
test
// Align rounds a up to a multiple of x. // x must be a power of 2.
{ "resource": "" }
c180148
test
// initialize implements step 1 of LT.
{ "resource": "" }
c180149
test
// calculate runs the main part of LT.
{ "resource": "" }
c180150
test
// eval is EVAL from the papers.
{ "resource": "" }
c180151
test
// compress is COMPRESS from the papers.
{ "resource": "" }
c180152
test
// link is LINK from the papers.
{ "resource": "" }
c180153
test
// reverse computes and stores reverse edges for each vertex.
{ "resource": "" }
c180154
test
// calcSize calculates the total retained size for each vertex.
{ "resource": "" }
c180155
test
// Returns the name of the field at offset off in x.
{ "resource": "" }
c180156
test
// Readable reports whether the address a is readable.
{ "resource": "" }
c180157
test
// ReadableN reports whether the n bytes starting at address a are readable.
{ "resource": "" }
c180158
test
// splitMappingsAt ensures that a is not in the middle of any mapping. // Splits mappings as necessary.
{ "resource": "" }
c180159
test
// DynamicType returns the concrete type stored in the interface type t at address a. // If the interface is nil, returns nil.
{ "resource": "" }
c180160
test
// lower your expectations
{ "resource": "" }
c180161
test
// Resolve resolves the URL host to its IP address.
{ "resource": "" }
c180162
test
// Equal reports whether tokens a, and b, are equal. // Two tokens are equal if both their types and values are equal. A nil token can // never be equal to another token.
{ "resource": "" }
c180163
test
// newDefaultClassifier creates a new classifier for ASCII characters.
{ "resource": "" }
c180164
test
// Next returns the next word, or an error. If there are no more words, // the error will be io.EOF.
{ "resource": "" }
c180165
test
// NewTokenizer creates a new tokenizer from an input stream.
{ "resource": "" }
c180166
test
// Split partitions a string into a slice of strings.
{ "resource": "" }
c180167
test
// Between extracts a string between left and right strings.
{ "resource": "" }
c180168
test
// BetweenF is the filter form for Between.
{ "resource": "" }
c180169
test
// Camelize return new string which removes any underscores or dashes and convert a string into camel casing.
{ "resource": "" }
c180170
test
// Capitalize uppercases the first char of s and lowercases the rest.
{ "resource": "" }
c180171
test
// CharAt returns a string from the character at the specified position.
{ "resource": "" }
c180172
test
// CharAtF is the filter form of CharAt.
{ "resource": "" }
c180173
test
// ChompLeft removes prefix at the start of a string.
{ "resource": "" }
c180174
test
// ChompLeftF is the filter form of ChompLeft.
{ "resource": "" }
c180175
test
// ChompRight removes suffix from end of s.
{ "resource": "" }
c180176
test
// ChompRightF is the filter form of ChompRight.
{ "resource": "" }
c180177
test
// ClassifyF is the filter form of Classify.
{ "resource": "" }
c180178
test
// Clean compresses all adjacent whitespace to a single space and trims s.
{ "resource": "" }
c180179
test
// Dasherize converts a camel cased string into a string delimited by dashes.
{ "resource": "" }
c180180
test
// EscapeHTML is alias for html.EscapeString.
{ "resource": "" }
c180181
test
// DecodeHTMLEntities decodes HTML entities into their proper string representation. // DecodeHTMLEntities is an alias for html.UnescapeString
{ "resource": "" }
c180182
test
// EnsurePrefixF is the filter form of EnsurePrefix.
{ "resource": "" }
c180183
test
// EnsureSuffixF is the filter form of EnsureSuffix.
{ "resource": "" }
c180184
test
// Humanize transforms s into a human friendly form.
{ "resource": "" }
c180185
test
// Iif is short for immediate if. If condition is true return truthy else falsey.
{ "resource": "" }
c180186
test
// IndexOf finds the index of needle in s starting from start.
{ "resource": "" }
c180187
test
// IsLower returns true if s comprised of all lower case characters.
{ "resource": "" }
c180188
test
// IsUpper returns true if s contains all upper case chracters.
{ "resource": "" }
c180189
test
// Left returns the left substring of length n.
{ "resource": "" }
c180190
test
// LeftF is the filter form of Left.
{ "resource": "" }
c180191
test
// Letters returns an array of runes as strings so it can be indexed into.
{ "resource": "" }
c180192
test
// Lines convert windows newlines to unix newlines then convert to an Array of lines.
{ "resource": "" }
c180193
test
// Map maps an array's iitem through an iterator.
{ "resource": "" }
c180194
test
// Match returns true if patterns matches the string
{ "resource": "" }
c180195
test
// Project is local project.
{ "resource": "" }
c180196
test
// Pad pads string s on both sides with c until it has length of n.
{ "resource": "" }
c180197
test
// PadF is the filter form of Pad.
{ "resource": "" }
c180198
test
// PadLeft pads s on left side with c until it has length of n.
{ "resource": "" }
c180199
test
// PadLeftF is the filter form of PadLeft.
{ "resource": "" }