Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/build/build/soong/sysprop/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 2 kB image not shown  

Quelle  sysprop_enc.go   Sprache: unbekannt

 
Spracherkennung für: .go vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

// Code generated by go run gob_gen.go; DO NOT EDIT.

package sysprop

import (
 "android/soong/android"
 "bytes"
 "fmt"
 "github.com/google/blueprint/gobtools"
 "github.com/google/blueprint/proptools"
 "reflect"
)

// begin of sysprop_library.go
func init() {
 SyspropLibraryInfoGobRegId = gobtools.RegisterType(func() gobtools.CustomDec { return new(SyspropLibraryInfo) })
}

func (r SyspropLibraryInfo) Encode(ctx gobtools.EncContext, buf *bytes.Buffer) error {
 var err error

 if err = gobtools.EncodeInterface(ctx, buf, r.CheckApiFileTimeStamp); err != nil {
  return err
 }

 if err = r.CurrentApiFile.Encode(ctx, buf); err != nil {
  return err
 }
 return err
}

func (r SyspropLibraryInfo) CustomHash(hasher *proptools.Hasher) error {
 hasher.WriteString(":sysprop.SyspropLibraryInfo")
 hasher.WriteInt(2)
 hasher.WriteString(":sysprop.android.WritablePath")
 val1 := r.CheckApiFileTimeStamp == nil
 if val1 {
  hasher.WriteByte(0)
 } else {
  if v := reflect.ValueOf(r.CheckApiFileTimeStamp); v.Kind() == reflect.Ptr {
   if v.IsNil() {
    panic(fmt.Errorf("nil pointer is not supported in interface"))
   } else {
    val2 := r.CheckApiFileTimeStamp == nil
    if val2 {
     hasher.WriteByte(0)
    } else {
     val3 := func(hasher *proptools.Hasher) error {
      return r.CheckApiFileTimeStamp.(proptools.CustomHash).CustomHash(hasher)
     }
     if err := proptools.HashReference(hasher, uintptr(v.Pointer()), val3); err != nil {
      return err
     }
    }
   }
  } else {
   r.CheckApiFileTimeStamp.(proptools.CustomHash).CustomHash(hasher)
  }
 }
 if err := r.CurrentApiFile.CustomHash(hasher); err != nil {
  return err
 }
 return nil
}

func (r *SyspropLibraryInfo) Decode(ctx gobtools.EncContext, buf *bytes.Reader) error {
 var err error

 if val2, err := gobtools.DecodeInterface(ctx, buf); err != nil {
  return err
 } else if val2 == nil {
  r.CheckApiFileTimeStamp = nil
 } else {
  r.CheckApiFileTimeStamp = val2.(android.WritablePath)
 }

 if err = r.CurrentApiFile.Decode(ctx, buf); err != nil {
  return err
 }

 return err
}

var SyspropLibraryInfoGobRegId int16

func (r SyspropLibraryInfo) GetTypeId() int16 {
 return SyspropLibraryInfoGobRegId
}

// end of sysprop_library.go

[Dauer der Verarbeitung: 0.42 Sekunden, vorverarbeitet 2026-06-28]