Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for encoding (0.18 sec)

  1. src/archive/tar/strconv.go

    		n := len(strings.TrimRight(s[:len(b)-1], "/"))
    		b[n] = 0 // Replace trailing slash with NUL terminator
    	}
    }
    
    // fitsInBase256 reports whether x can be encoded into n bytes using base-256
    // encoding. Unlike octal encoding, base-256 encoding does not require that the
    // string ends with a NUL character. Thus, all n bytes are available for output.
    //
    // If operating in binary mode, this assumes strict GNU binary mode; which means
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/s390x.s

    	MOVB	$255, 4096(R4)        // ebff40000152
    	MOVB	$-128, -524288(R5)    // eb8050008052
    	MOVB	$1, -524289(R6)       // c0a1fff7ffff41aa60009201a000
    
    	// RX (12-bit displacement) and RXY (20-bit displacement) instruction encoding (e.g: ST vs STY)
    	MOVW	R1, 4095(R2)(R3)       // 50132fff
    	MOVW	R1, 4096(R2)(R3)       // e31320000150
    	MOVWZ	R1, 4095(R2)(R3)       // 50132fff
    	MOVWZ	R1, 4096(R2)(R3)       // e31320000150
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 22 03:55:32 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/99-minor/unicode/utf16/44940.md

    The [RuneLen] function returns the number of 16-bit words in
    the UTF-16 encoding of the rune. It returns -1 if the rune
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 162 bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package zip
    
    import (
    	"bytes"
    	"encoding/binary"
    	"encoding/hex"
    	"internal/obscuretestdata"
    	"io"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"reflect"
    	"regexp"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    type ZipTest struct {
    	Name     string
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    // equivalent to that from a range loop over the input as a string, which
    // means that erroneous UTF-8 encodings translate to U+FFFD = "\xef\xbf\xbd".
    // Because of the Scan interface, this makes it impossible for the client to
    // distinguish correctly encoded replacement runes from encoding errors.
    func ScanRunes(data []byte, atEOF bool) (advance int, token []byte, err error) {
    	if atEOF && len(data) == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    		f.NonUTF8 = false
    	default:
    		// Might be UTF-8, might be some other encoding; preserve existing flag.
    		// Some ZIP writers use UTF-8 encoding without setting the UTF-8 flag.
    		// Since it is impossible to always distinguish valid UTF-8 from some
    		// other encoding (e.g., GBK or Shift-JIS), we trust the flag.
    		f.NonUTF8 = f.Flags&0x800 == 0
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. src/archive/tar/format.go

    //	AccessTime        |    n/a | unlimited |     int89
    //	ChangeTime        |    n/a | unlimited |     int89
    //	Devmajor/Devminor | uint21 |    uint21 |    uint57
    //	------------------+--------+-----------+----------
    //	string encoding   |  ASCII |     UTF-8 |    binary
    //	sub-second times  |     no |       yes |        no
    //	sparse files      |     no |       yes |       yes
    //
    // The table's upper portion shows the [Header] fields, where each format reports
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/archive/zip/struct.go

    	Comment string
    
    	// NonUTF8 indicates that Name and Comment are not encoded in UTF-8.
    	//
    	// By specification, the only other encoding permitted should be CP-437,
    	// but historically many ZIP readers interpret Name and Comment as whatever
    	// the system's local character encoding happens to be.
    	//
    	// This flag should only be set if the user intends to encode a non-portable
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/expr_test.go

    	{"3>>-4", "negative right shift count"},
    	{"3>>(1<<63)", "negative right shift count"},
    	{"(1<<63)>>2", "right shift of value with high bit set"},
    	{"(1<<62)>>2", ""},
    	{`'\x80'`, "illegal UTF-8 encoding for character constant"},
    	{"(23*4", "missing closing paren"},
    	{")23*4", "unexpected ) evaluating expression"},
    	{"18446744073709551616", "value out of range"},
    }
    
    func TestBadExpr(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  10. src/bytes/buffer.go

    func (b *Buffer) WriteByte(c byte) error {
    	b.lastRead = opInvalid
    	m, ok := b.tryGrowByReslice(1)
    	if !ok {
    		m = b.grow(1)
    	}
    	b.buf[m] = c
    	return nil
    }
    
    // WriteRune appends the UTF-8 encoding of Unicode code point r to the
    // buffer, returning its length and an error, which is always nil but is
    // included to match [bufio.Writer]'s WriteRune. The buffer is grown as needed;
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
Back to top