Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for Read (0.22 sec)

  1. daemon/logger/local/read.go

    		d.buf = make([]byte, initialBufSize)
    	}
    	var (
    		read int
    		err  error
    	)
    
    	for i := 0; i < maxDecodeRetry; i++ {
    		var n int
    		n, err = io.ReadFull(d.rdr, d.buf[read:encodeBinaryLen])
    		if err != nil {
    			if err != io.ErrUnexpectedEOF {
    				return nil, errors.Wrap(err, "error reading log message length")
    			}
    			read += n
    			continue
    		}
    		read += n
    		break
    	}
    	if err != nil {
    Go
    - Registered: 2020-08-05 12:04
    - Last Modified: 2020-04-08 19:24
    - 4.4K bytes
    - Viewed (0)
  2. examples/uniapp-one/store/modules/read.js

    import API from '@/utils/api'
    import { CHANGE_CURRENT_READ, CHANGE_READ_LIST } from './../mutations_type'
    
    const state = {
      readList: {
        essay: [],
        question: [],
        serial: []
      },
      readContent: {
        essay: {},
        question: {}
      }
    }
    
    const mutations = {
      [CHANGE_READ_LIST] (state, payload) {
        state.readList = payload.data
      },
      [CHANGE_CURRENT_READ] (state, payload) {
    JavaScript
    - Registered: 2020-06-23 06:42
    - Last Modified: 2018-08-23 07:07
    - 1.1K bytes
    - Viewed (0)
  3. vendor/github.com/Unknwon/goconfig/read.go

    package goconfig
    
    import (
    	"bufio"
    	"bytes"
    	"fmt"
    	"io"
    	"io/ioutil"
    	"os"
    	"path"
    	"strings"
    	"time"
    )
    
    // Read reads an io.Reader and returns a configuration representation.
    // This representation can be queried with GetValue.
    func (c *ConfigFile) read(reader io.Reader) (err error) {
    	buf := bufio.NewReader(reader)
    
    	// Handle BOM-UTF8.
    Go
    - Registered: 2020-07-20 07:43
    - Last Modified: 2018-11-26 14:10
    - 7.5K bytes
    - Viewed (0)
  4. vendor/github.com/aws/aws-sdk-go/internal/sdkrand/read.go

    // +build go1.6
    
    package sdkrand
    
    import "math/rand"
    
    // Read provides the stub for math.Rand.Read method support for go version's
    // 1.6 and greater.
    func Read(r *rand.Rand, p []byte) (int, error) {
    	return r.Read(p)
    Go
    - Registered: 2020-08-05 16:43
    - Last Modified: 2019-12-09 23:16
    - 220 bytes
    - Viewed (0)
  5. pages/common/read.md

    # read
    
    > BASH builtin for retrieving data from standard input.
    
    - Store data that you type from the keyboard:
    
    `read {{variable}}`
    
    - Store each of the next lines you enter as values of an array:
    
    `read -a {{array}}`
    
    - Enable backspace and GNU readline hotkeys when entering input with read:
    
    `read -e {{variable}}`
    
    - Specify the number of maximum characters to be read:
    
    `read -n {{character_count}} {{variable}}`
    
    Plain Text
    - Registered: 2020-07-10 14:50
    - Last Modified: 2019-01-27 00:10
    - 769 bytes
    - Viewed (0)
  6. vfs/read.go

    		}
    	}
    
    	return nil
    }
    
    // Read reads up to len(p) bytes into p. It returns the number of bytes read (0
    // <= n <= len(p)) and any error encountered. Even if Read returns n < len(p),
    // it may use all of p as scratch space during the call. If some data is
    // available but not len(p) bytes, Read conventionally returns what is
    // available instead of waiting for more.
    //
    Go
    - Registered: 2020-08-03 07:43
    - Last Modified: 2020-07-28 15:41
    - 13.6K bytes
    - Viewed (0)
  7. deps/npm/node_modules/read/lib/read.js

    module.exports = read
    
    var readline = require('readline')
    var Mute = require('mute-stream')
    
    function read (opts, cb) {
      if (opts.num) {
        throw new Error('read() no longer accepts a char number limit')
      }
    
      if (typeof opts.default !== 'undefined' &&
          typeof opts.default !== 'string' &&
          typeof opts.default !== 'number') {
        throw new Error('default value must be string or number')
      }
    
    JavaScript
    - Registered: 2020-06-05 03:21
    - Last Modified: 2013-07-24 20:23
    - 2.4K bytes
    - Viewed (0)
  8. vfs/vfstest/read.go

    	assert.NoError(t, err)
    	err = fd.Close()
    	assert.NoError(t, err)
    
    	// The hash comparison would fail, because we only read parts
    	// of the file
    	fd, err = run.os.Open(run.path("bigfile"))
    	assert.NoError(t, err)
    	// read at start
    	_, err = io.ReadFull(fd, buf)
    	assert.NoError(t, err)
    	// read at end
    	_, err = fd.Seek(int64(len(b)-len(buf)), io.SeekStart)
    	assert.NoError(t, err)
    	_, err = io.ReadFull(fd, buf)
    Go
    - Registered: 2020-08-03 07:43
    - Last Modified: 2020-06-30 11:03
    - 2.7K bytes
    - Viewed (0)
  9. vendor/github.com/aws/aws-sdk-go/internal/sdkrand/read.go

    // +build go1.6
    
    package sdkrand
    
    import "math/rand"
    
    // Read provides the stub for math.Rand.Read method support for go version's
    // 1.6 and greater.
    func Read(r *rand.Rand, p []byte) (int, error) {
    	return r.Read(p)
    Go
    - Registered: 2020-07-20 07:43
    - Last Modified: 2019-11-14 21:51
    - 220 bytes
    - Viewed (0)
  10. benchmarks/benchjs/read.js

            process.exit();
          });
        }
    
        suite.add('Read - Mongoose - Basic', {
          defer: true,
          fn: function(deferred) {
            User.findOne({_id: getNextmId()}, function(err) {
              if (err) {
                throw err;
              }
              deferred.resolve();
            });
          }
        }).add('Read - Driver - Basic', {
          defer: true,
          fn: function(deferred) {
    JavaScript
    - Registered: 2020-06-21 00:15
    - Last Modified: 2018-09-28 15:45
    - 7.6K bytes
    - Viewed (0)
Back to top