- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for ByteWriter (0.45 sec)
-
src/cmd/link/internal/wasm/asm.go
} writeSecSize(ctxt, sizeOffset2) writeSecSize(ctxt, sizeOffset) } type nameWriter interface { io.ByteWriter io.Writer } func writeI32Const(w io.ByteWriter, v int32) { w.WriteByte(0x41) // i32.const writeSleb128(w, int64(v)) } func writeI64Const(w io.ByteWriter, v int64) { w.WriteByte(0x42) // i64.const writeSleb128(w, v) } func writeName(w nameWriter, name string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:48 UTC 2024 - 21.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf.go
out.off += int64(n) return n, nil } func (out *OutBuf) Write8(v uint8) { pos, buf := out.writeLoc(1) buf[pos] = v out.off++ } // WriteByte is an alias for Write8 to fulfill the io.ByteWriter interface. func (out *OutBuf) WriteByte(v byte) error { out.Write8(v) return nil } func (out *OutBuf) Write16(v uint16) { out.arch.ByteOrder.PutUint16(out.encbuf[:], v) out.Write(out.encbuf[:2])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 19:51:29 UTC 2022 - 8.1K bytes - Viewed (0) -
src/compress/lzw/writer.go
// license that can be found in the LICENSE file. package lzw import ( "bufio" "errors" "fmt" "io" ) // A writer is a buffered, flushable writer. type writer interface { io.ByteWriter Flush() error } const ( // A code is a 12 bit value, stored as a uint32 when encoding to avoid // type conversions when shifting bits. maxCode = 1<<12 - 1 invalidCode = 1<<32 - 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 7.9K bytes - Viewed (0) -
src/hash/maphash/maphash.go
if h.seed.s == 0 { seed := MakeSeed() h.seed = seed h.state = seed } } // WriteByte adds b to the sequence of bytes hashed by h. // It never fails; the error result is for implementing [io.ByteWriter]. func (h *Hash) WriteByte(b byte) error { if h.n == len(h.buf) { h.flush() } h.buf[h.n] = b h.n++ return nil } // Write adds b to the sequence of bytes hashed by h.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 19:15:34 UTC 2023 - 7.9K bytes - Viewed (0) -
src/io/io.go
// seek to one byte before the current offset. type ByteScanner interface { ByteReader UnreadByte() error } // ByteWriter is the interface that wraps the WriteByte method. type ByteWriter interface { WriteByte(c byte) error } // RuneReader is the interface that wraps the ReadRune method. // // ReadRune reads a single encoded Unicode character
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:34:10 UTC 2024 - 21.6K bytes - Viewed (0) -
src/image/gif/writer.go
func log2(x int) int { for i, v := range log2Lookup { if x <= v { return i } } return -1 } // writer is a buffered writer. type writer interface { Flush() error io.Writer io.ByteWriter } // encoder encodes an image to the GIF format. type encoder struct { // w is the writer to write to. err is the first error encountered during // writing. All attempted writes after the first error become no-ops.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:38:09 UTC 2024 - 11.9K bytes - Viewed (0) -
src/image/jpeg/writer.go
func init() { for i, s := range theHuffmanSpec { theHuffmanLUT[i].init(s) } } // writer is a buffered writer. type writer interface { Flush() error io.Writer io.ByteWriter } // encoder encodes an image to the JPEG format. type encoder struct { // w is the writer to write to. err is the first error encountered during
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 17.1K bytes - Viewed (0) -
src/cmd/internal/obj/wasm/wasmobj.go
panic("align: bad op") } } func writeUleb128(w io.ByteWriter, v uint64) { if v < 128 { w.WriteByte(uint8(v)) return } more := true for more { c := uint8(v & 0x7f) v >>= 7 more = v != 0 if more { c |= 0x80 } w.WriteByte(c) } } func writeSleb128(w io.ByteWriter, v int64) { more := true for more { c := uint8(v & 0x7f)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 34.6K bytes - Viewed (0) -
src/net/http/requestwrite_test.go
// w is the buffered io.Writer to write the request to. It // fails exactly once on its Nth Write call, as controlled by // failAfter. It also tracks the number of calls in // writeCount. w := struct { io.ByteWriter // to avoid being wrapped by a bufio.Writer io.Writer }{ nil, writerFunc(func(p []byte) (n int, err error) { writeCount++ if failAfter == 0 { err = errFail } failAfter--
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 23.3K bytes - Viewed (0) -
src/encoding/xml/marshal.go
if p.closed && p.err == nil { p.err = errors.New("use of closed Encoder") } if p.err == nil { n, p.err = p.w.WriteString(s) } return n, p.err } // WriteByte implements io.ByteWriter func (p *printer) WriteByte(c byte) error { if p.closed && p.err == nil { p.err = errors.New("use of closed Encoder") } if p.err == nil { p.err = p.w.WriteByte(c) } return p.err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 31.2K bytes - Viewed (0)