Go stdlib package — bytes. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Buffer.Available()NeutralBuffer.Available() int
Available returns how many bytes are unused in the buffer.
.Buffer.AvailableBuffer()NeutralBuffer.AvailableBuffer() []byte
AvailableBuffer returns an empty buffer with b.Available() capacity.
.Buffer.Bytes()NeutralBuffer.Bytes() []byte
Bytes returns a slice of length b.Len() holding the unread portion of the buffer.
.Buffer.Cap()NeutralBuffer.Cap() int
Cap returns the capacity of the buffer's underlying byte slice, that is, the
.Buffer.Grow()NeutralBuffer.Grow(n int)
Grow grows the buffer's capacity, if necessary, to guarantee space for
.Buffer.Len()NeutralBuffer.Len() int
Len returns the number of bytes of the unread portion of the buffer;
.Buffer.Next()NeutralBuffer.Next(n int) []byte
Next returns a slice containing the next n bytes from the buffer,
.Buffer.Read()NeutralBuffer.Read(p []byte) (int, error)
Read reads the next len(p) bytes from the buffer or until the buffer
.Buffer.ReadByte()NeutralBuffer.ReadByte() (byte, error)
ReadByte reads and returns the next byte from the buffer.
.Buffer.ReadBytes()NeutralBuffer.ReadBytes(delim byte) ([]byte, error)
ReadBytes reads until the first occurrence of delim in the input,
| FQN | Field | |
|---|---|---|
| bytes | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # bytes