* cp-tree.h (build_noexcept_spec, add_exception_specifier): Adjust
[official-gcc.git] / libgo / go / syscall / route_freebsd_64bit.go
blob728837ebb5aa9e18c39964f0b35f1b6fad8e3632
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build freebsd,amd64
7 package syscall
9 import "unsafe"
11 func (any *anyMessage) parseRouteMessage(b []byte) *RouteMessage {
12 p := (*RouteMessage)(unsafe.Pointer(any))
13 return &RouteMessage{Header: p.Header, Data: b[rsaAlignOf(int(unsafe.Offsetof(p.Header.Rmx))+SizeofRtMetrics):any.Msglen]}
16 func (any *anyMessage) parseInterfaceMessage(b []byte) *InterfaceMessage {
17 p := (*InterfaceMessage)(unsafe.Pointer(any))
18 return &InterfaceMessage{Header: p.Header, Data: b[int(unsafe.Offsetof(p.Header.Data))+int(p.Header.Data.Datalen) : any.Msglen]}