Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ErrShortDst (0.22 sec)

  1. src/vendor/golang.org/x/text/unicode/norm/transform.go

    // Users should either catch ErrShortDst and allow dst to grow or have dst be at
    // least of size MaxTransformChunkSize to be guaranteed of progress.
    func (f Form) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	// Cap the maximum number of src bytes to check.
    	b := src
    	eof := atEOF
    	if ns := len(dst); ns < len(b) {
    		err = transform.ErrShortDst
    		eof = false
    		b = b[:ns]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/unicode/norm/transform.go

    // Users should either catch ErrShortDst and allow dst to grow or have dst be at
    // least of size MaxTransformChunkSize to be guaranteed of progress.
    func (f Form) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	// Cap the maximum number of src bytes to check.
    	b := src
    	eof := atEOF
    	if ns := len(dst); ns < len(b) {
    		err = transform.ErrShortDst
    		eof = false
    		b = b[:ns]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/transform/transform.go

    package transform // import "golang.org/x/text/transform"
    
    import (
    	"bytes"
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    var (
    	// ErrShortDst means that the destination buffer was too short to
    	// receive all of the transformed bytes.
    	ErrShortDst = errors.New("transform: short destination buffer")
    
    	// ErrShortSrc means that the source buffer has insufficient data to
    	// complete the transformation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/text/transform/transform.go

    package transform // import "golang.org/x/text/transform"
    
    import (
    	"bytes"
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    var (
    	// ErrShortDst means that the destination buffer was too short to
    	// receive all of the transformed bytes.
    	ErrShortDst = errors.New("transform: short destination buffer")
    
    	// ErrShortSrc means that the source buffer has insufficient data to
    	// complete the transformation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 21 22:10:00 UTC 2020
    - 21.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/cases/context.go

    	if len(c.dst)-c.pDst < len(b) {
    		c.err = transform.ErrShortDst
    		return false
    	}
    	// This loop is faster than using copy.
    	for _, ch := range b {
    		c.dst[c.pDst] = ch
    		c.pDst++
    	}
    	return true
    }
    
    // writeString writes the given string to dst.
    func (c *context) writeString(s string) bool {
    	if len(c.dst)-c.pDst < len(s) {
    		c.err = transform.ErrShortDst
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/text/secure/bidirule/bidirule.go

    // needs to be reset between uses.
    func (t *Transformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	if len(dst) < len(src) {
    		src = src[:len(dst)]
    		atEOF = false
    		err = transform.ErrShortDst
    	}
    	n, err1 := t.Span(src, atEOF)
    	copy(dst, src[:n])
    	if err == nil || err1 != nil && err1 != transform.ErrShortSrc {
    		err = err1
    	}
    	return n, n, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 9.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go

    	// may need to write atomically for any Form. Making a destination buffer at
    	// least this size ensures that Transform can always make progress and that
    	// the user does not need to grow the buffer on an ErrShortDst.
    	MaxTransformChunkSize = 35 + maxNonStarters*4
    )
    
    var ccc = [55]uint8{
    	0, 1, 7, 8, 9, 10, 11, 12,
    	13, 14, 15, 16, 17, 18, 19, 20,
    	21, 22, 23, 24, 25, 26, 27, 28,
    	29, 30, 31, 32, 33, 34, 35, 36,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 376.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go

    	// may need to write atomically for any Form. Making a destination buffer at
    	// least this size ensures that Transform can always make progress and that
    	// the user does not need to grow the buffer on an ErrShortDst.
    	MaxTransformChunkSize = 35 + maxNonStarters*4
    )
    
    var ccc = [55]uint8{
    	0, 1, 7, 8, 9, 10, 11, 12,
    	13, 14, 15, 16, 17, 18, 19, 20,
    	21, 22, 23, 24, 25, 26, 27, 28,
    	29, 30, 31, 32, 33, 34, 35, 36,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 372.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go

    	// may need to write atomically for any Form. Making a destination buffer at
    	// least this size ensures that Transform can always make progress and that
    	// the user does not need to grow the buffer on an ErrShortDst.
    	MaxTransformChunkSize = 35 + maxNonStarters*4
    )
    
    var ccc = [56]uint8{
    	0, 1, 6, 7, 8, 9, 10, 11,
    	12, 13, 14, 15, 16, 17, 18, 19,
    	20, 21, 22, 23, 24, 25, 26, 27,
    	28, 29, 30, 31, 32, 33, 34, 35,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 385.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go

    	// may need to write atomically for any Form. Making a destination buffer at
    	// least this size ensures that Transform can always make progress and that
    	// the user does not need to grow the buffer on an ErrShortDst.
    	MaxTransformChunkSize = 35 + maxNonStarters*4
    )
    
    var ccc = [55]uint8{
    	0, 1, 7, 8, 9, 10, 11, 12,
    	13, 14, 15, 16, 17, 18, 19, 20,
    	21, 22, 23, 24, 25, 26, 27, 28,
    	29, 30, 31, 32, 33, 34, 35, 36,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 376.2K bytes
    - Viewed (0)
Back to top