Standard Library

GoBytes

Go stdlib package — bytes. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Buffer.Available()Neutral
#
Signature
Buffer.Available() int

Available returns how many bytes are unused in the buffer.

.Buffer.AvailableBuffer()Neutral
#
Signature
Buffer.AvailableBuffer() []byte

AvailableBuffer returns an empty buffer with b.Available() capacity.

.Buffer.Bytes()Neutral
#
Signature
Buffer.Bytes() []byte

Bytes returns a slice of length b.Len() holding the unread portion of the buffer.

.Buffer.Cap()Neutral
#
Signature
Buffer.Cap() int

Cap returns the capacity of the buffer's underlying byte slice, that is, the

.Buffer.Grow()Neutral
#
Signature
Buffer.Grow(n int)

Grow grows the buffer's capacity, if necessary, to guarantee space for

.Buffer.Len()Neutral
#
Signature
Buffer.Len() int

Len returns the number of bytes of the unread portion of the buffer;

.Buffer.Next()Neutral
#
Signature
Buffer.Next(n int) []byte

Next returns a slice containing the next n bytes from the buffer,

.Buffer.Read()Neutral
#
Signature
Buffer.Read(p []byte) (int, error)

Read reads the next len(p) bytes from the buffer or until the buffer

.Buffer.ReadByte()Neutral
#
Signature
Buffer.ReadByte() (byte, error)

ReadByte reads and returns the next byte from the buffer.

.Buffer.ReadBytes()Neutral
#
Signature
Buffer.ReadBytes(delim byte) ([]byte, error)

ReadBytes reads until the first occurrence of delim in the input,

Fully-Qualified Names

FQNField
bytesfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # bytes