Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SERIALIZABLE (0.25 sec)

  1. internal/grid/README.md

    These must provide `msgp` serialization and deserialization.
    
    In the examples we use a `MSS` type, which is a `map[string]string` that is `msgp` serializable.
    
    ```go
        handler := func(request *grid.MSS) (*grid.MSS, *grid.RemoteErr) {
            fmt.Println("Got request with field", request["myfield"])
            // Do something with payload
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  2. internal/grid/types.go

    		v[i] = zero
    	}
    	if v != nil {
    		v = v[:0]
    		p.aPool.Put(&v)
    	}
    }
    
    func (p *ArrayOf[T]) newE() T {
    	return p.ePool.Get().(T)
    }
    
    // Array provides a wrapper for an underlying array of serializable objects.
    type Array[T RoundTripper] struct {
    	p   *ArrayOf[T]
    	val []T
    }
    
    // Msgsize returns the size of the array in bytes.
    func (j *Array[T]) Msgsize() int {
    	if j.val == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top