_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c15000 | // MoveNext moves Navigator to the next match node. | |
c15001 | // Select selects a node set using the specified XPath expression. | |
c15002 | // Compile compiles an XPath expression string. | |
c15003 | // MustCompile compiles an XPath expression string and ignored error. | |
c15004 | // The XPath function list. | |
c15005 | // substringFunc is XPath functions substring function returns a part of a given string. | |
c15006 | // Wraps libutp's utp_process_udp, returning relevant information. | |
c15007 | // Passing an empty network will use the network of the Socket's listener. | |
c15008 | // fdget returns index and offset of fd in fds. | |
c15009 | // fdset implements FD_SET macro. | |
c15010 | // fdisset implements FD_ISSET macro. | |
c15011 | // Read reads from serial port.
// It is blocked until data received or timeout after p.timeout. | |
c15012 | // syscallSelect is a wapper for syscall.Select that only returns error. | |
c15013 | // Read reads from serial port. Port must be opened before calling this method.
// It is blocked until all data received or timeout after p.timeout. | |
c15014 | // backupTermios saves current termios setting.
// Make sure that device file has been opened before calling this function. | |
c15015 | // restoreTermios restores backed up termios setting.
// Make sure that device file has been opened before calling this function. | |
c15016 | // Helpers for termios | |
c15017 | // enableRS485 enables RS485 functionality of driver via an ioctl if the config says so | |
c15018 | // Open opens a serial port. | |
c15019 | // NewServer creates TFTP server. It requires two functions to handle
// read and write requests.
// In case nil is provided for read or write handler the respective
// operation is disabled. | |
c15020 | // SetAnticipate provides an experimental feature in which when a packets
// is requested the server will keep sending a number of packets before
// checking whether an ack has been received. It improves tftp downloading
// speed by a few times.
// The argument winsz specifies how many packets will be sent before
// wa... | |
c15021 | // EnableSinglePort enables an experimental mode where the server will
// serve all connections on port 69 only. There will be no random TIDs
// on the server side.
//
// Enabling this will negatively impact performance | |
c15022 | // SetTimeout sets maximum time server waits for single network
// round-trip to succeed.
// Default is 5 seconds. | |
c15023 | // SetRetries sets maximum number of attempts server made to transmit a
// packet.
// Default is 5 attempts. | |
c15024 | // ListenAndServe binds to address provided and start the server.
// ListenAndServe returns when Shutdown is called. | |
c15025 | // Serve starts server provided already opened UDP connecton. It is
// useful for the case when you want to run server in separate goroutine
// but still want to be able to handle any errors opening connection.
// Serve returns when Shutdown is called or connection is closed. | |
c15026 | // Shutdown make server stop listening for new requests, allows
// server to finish outstanding transfers and stops server. | |
c15027 | // internalGC collects all the finished signals from each connection's goroutine
// The main loop is sent the key to be nil'ed after the gcInterval has passed | |
c15028 | // packRQ returns length of the packet in b | |
c15029 | // NewClient creates TFTP client for server on address provided. | |
c15030 | // SetTimeout sets maximum time client waits for single network round-trip to succeed.
// Default is 5 seconds. | |
c15031 | // SetRetries sets maximum number of attempts client made to transmit a packet.
// Default is 5 attempts. | |
c15032 | // Send starts outgoing file transmission. It returns io.ReaderFrom or error. | |
c15033 | // Receive starts incoming file transmission. It returns io.WriterTo or error. | |
c15034 | // AvailableBackends provides a slice of all available backend keys on the current OS | |
c15035 | // Open will open a specific keyring backend | |
c15036 | // NewArrayKeyring returns an ArrayKeyring, optionally constructed with an initial slice
// of items | |
c15037 | // Get returns an Item matching Key | |
c15038 | // Set will store an item on the mock Keyring | |
c15039 | // Remove will delete an Item from the Keyring | |
c15040 | // Keys provides a slice of all Item keys on the Keyring | |
c15041 | // WithHTTPClient makes the metadata client use the given HTTP client. | |
c15042 | // WithBaseURL makes the metadata client reach the metadata API using the
// given base URL. | |
c15043 | // NewClient creates a client for the metadata API. | |
c15044 | // Metadata contains the entire contents of a Droplet's metadata.
// This method is unique because it returns all of the
// metadata at once, instead of individual metadata items. | |
c15045 | // DropletID returns the Droplet's unique identifier. This is
// automatically generated upon Droplet creation. | |
c15046 | // Hostname returns the Droplet's hostname, as specified by the
// user during Droplet creation. | |
c15047 | // UserData returns the user data that was provided by the user
// during Droplet creation. User data can contain arbitrary data
// for miscellaneous use or, with certain Linux distributions,
// an arbitrary shell script or cloud-config file that will be
// consumed by a variation of cloud-init upon boot. At this time,... | |
c15048 | // VendorData provided data that can be used to configure Droplets
// upon their creation. This is similar to user data, but it is
// provided by DigitalOcean instead of the user. | |
c15049 | // Region returns the region code of where the Droplet resides. | |
c15050 | // AuthToken returns the authentication token. | |
c15051 | // FloatingIPv4Active returns true if an IPv4 Floating IP
// Address is assigned to the Droplet. | |
c15052 | // Save saves a representation of v to the file at path. | |
c15053 | // implement the io.Reader interface | |
c15054 | // Initialize a new Converter. If fromEncoding or toEncoding are not supported by
// iconv then an EINVAL error will be returned. An ENOMEM error maybe returned if
// there is not enough memory to initialize an iconv descriptor | |
c15055 | // Close a Converter's iconv description explicitly | |
c15056 | // Convert bytes from an input byte slice into a give output byte slice
//
// As many bytes that can converted and fit into the size of output will be
// processed and the number of bytes read for input as well as the number of
// bytes written to output will be returned. If not all converted bytes can fit
// into outp... | |
c15057 | // Convert an input string
//
// EILSEQ error may be returned if input contains invalid bytes for the
// Converter's fromEncoding. | |
c15058 | // All in one Convert method, rather than requiring the construction of an iconv.Converter | |
c15059 | // All in one ConvertString method, rather than requiring the construction of an iconv.Converter | |
c15060 | // implement the io.Writer interface | |
c15061 | // Transform takes a ColourScheme, a ViewRegionMap and a viewport as input.
//
// The viewport would be the text.Region of the current buffer that is visible to the user
// and any ViewRegions outside of this area are not forwarded for further processing.
//
// The remaining ViewRegions are then passed on to the Colour... | |
c15062 | // Transcribing the Recipe creates a linear step-by-step
// representation of it, which might or might not
// make it easier for Renderers to work with. | |
c15063 | // Returns a string describing this Edit object. Should typically not be manually called. | |
c15064 | // Reverses the application of this Edit object. Should typically not be manually called. | |
c15065 | // Compares one KeyBinding to another for sorting purposes. | |
c15066 | // Swaps the two KeyBindings at the given positions. | |
c15067 | // Drops all KeyBindings that are a sequence of key presses less or equal
// to the given number. | |
c15068 | // Filters the KeyBindings, returning a new KeyBindings object containing
// a subset of matches for the given key press. | |
c15069 | // Tries to resolve all the current KeyBindings in k to a single
// action. If any action is appropriate as determined by context,
// the return value will be the specific KeyBinding that is possible
// to execute now, otherwise it is nil. | |
c15070 | // Returns whether this KeyPress is a print character or not. | |
c15071 | // Modifies the KeyPress so that it's Key is a unicode lower case
// rune and if it was in uppercase before this modification, the
// "Shift" modifier is also enabled. | |
c15072 | // Won't return the json type itself just watch & load | |
c15073 | // Send a reparse request via the reparse channel.
// If "forced" is set to true, then a reparse will be made
// even if the Buffer appears to not have changed.
//
// The actual parsing is done in a separate go-routine, for which the
// "lime.syntax.updated" setting will be set once it has finished.
//
// Note that it'... | |
c15074 | // Adds an Erase action of the given Region to the provided Edit object. | |
c15075 | // Adds a Replace action of the given Region to the provided Edit object. | |
c15076 | // Ends the given Edit object. | |
c15077 | // Returns whether the underlying Buffer has any unsaved modifications.
// Note that Scratch buffers are never considered dirty. | |
c15078 | // Saves the file to the specified filename | |
c15079 | // AddRegions lets users mark text regions in a view with a scope name, gutter icon and ViewRegionflags
// which are then optionally used to alter the display of those regions.
//
// Typical uses would be to draw squiggly lines under misspelled words, show an icon in the gutter to
// indicate a breakpoint, keeping trac... | |
c15080 | // Returns the Regions associated with the given key. | |
c15081 | // Removes the Regions associated with the given key from the view. | |
c15082 | // Initiate the "close" operation of this view.
// Returns "true" if the view was closed. Otherwise returns "false". | |
c15083 | // Finds the next location after point that matches the given classes
// Searches backward if forward is false | |
c15084 | // Expands the selection until the point on each side matches the given classes | |
c15085 | // If the cmd implements the CustomInit interface, its Init function
// is called, otherwise the fields of the cmd's underlying struct type
// will be enumerated and match against the dictionary keys in args,
// or if the key isn't provided in args, the Zero value will be used. | |
c15086 | // Closes the Window and all its Views.
// Returns "true" if the Window closed successfully. Otherwise returns "false". | |
c15087 | // Closes all of the Window's Views.
// Returns "true" if all the Views closed successfully. Otherwise returns "false". | |
c15088 | // Marshals project struct to json then writes it to a file with given name | |
c15089 | // Execute the InitEvent. | |
c15090 | // Remove watchers created on files under this directory because
// one watcher on the parent directory is enough for all of them | |
c15091 | // Put back watchers on watching files under the directory | |
c15092 | // Observe dispatches notifications received by the watcher. This function will
// return when the watcher is closed. | |
c15093 | // Re-applies the next action in the undo stack
// if there are any actions on the stack that had
// been undone.
//
// See comment in Undo regarding the use of "hard". | |
c15094 | // Glues all edits from the position given by mark,
// to the current position in the UndoStack, replacing
// them by a single entry which will now be composite
// of all those other actions.
//
// In other words, after the glue operation
// a single "undo" operation will then undo all of those edits
// and a single re... | |
c15095 | // Helper function for watching a package | |
c15096 | // watches scaned directory | |
c15097 | // Calls Cull on each ViewRegions object contained in the map,
// removing all entries that are outside of the viewport. | |
c15098 | // Removes any regions that are outside of the given viewport,
// and clips the regions that are intersecting it so that
// all regions remaining are fully contained inside of the viewport. | |
c15099 | // Creates a copy of this ViewRegions object. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.