Documentation ¶
Overview ¶
Copyright 2019-2020 vChain, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019-2020 vChain, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019-2020 vChain, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- type Appendable
- type Metadata
- func (m *Metadata) Bytes() []byte
- func (m *Metadata) Get(key string) ([]byte, bool)
- func (m *Metadata) GetInt(key string) (int, bool)
- func (m *Metadata) Put(key string, value []byte)
- func (m *Metadata) PutInt(key string, n int)
- func (m *Metadata) ReadFrom(r io.Reader) (int64, error)
- func (m *Metadata) WriteTo(w io.Writer) (n int64, err error)
- type Reader
Constants ¶
const ( NoCompression = iota FlateCompression GZipCompression LZWCompression ZLibCompression )
const ( BestSpeed = flate.BestSpeed BestCompression = flate.BestCompression DefaultCompression = flate.DefaultCompression HuffmanOnly = flate.HuffmanOnly )
const DefaultCompressionFormat = NoCompression
const DefaultCompressionLevel = BestSpeed
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appendable ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func NewMetadata ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}