~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/bytes/bytes_decl.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
package bytes
6
6
 
 
7
//go:noescape
 
8
 
7
9
// IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s.
8
10
func IndexByte(s []byte, c byte) int // asm_$GOARCH.s
 
11
 
 
12
//go:noescape
 
13
 
 
14
// Equal returns a boolean reporting whether a == b.
 
15
// A nil argument is equivalent to an empty slice.
 
16
func Equal(a, b []byte) bool // asm_arm.s or ../runtime/asm_{386,amd64}.s