Defines the interface for a class that provides low-level support for serializing Avro values.
| 23 | /// values. |
| 24 | /// </summary> |
| 25 | public interface Encoder |
| 26 | { |
| 27 | /// <summary> |
| 28 | /// Writes a null value. |
| 29 | /// </summary> |
| 30 | void WriteNull(); |
| 31 | |
| 32 | /// <summary> |
| 33 | /// Writes a boolean value. |
| 34 | /// </summary> |
| 35 | /// <param name="value">Value to write.</param> |
| 36 | void WriteBoolean(bool value); |
| 37 | |
| 38 | /// <summary> |
| 39 | /// Writes an int value. |
| 40 | /// </summary> |
| 41 | /// <param name="value">Value to write.</param> |
| 42 | void WriteInt(int value); |
| 43 | |
| 44 | /// <summary> |
| 45 | /// Writes a long value. |
| 46 | /// </summary> |
| 47 | /// <param name="value">Value to write.</param> |
| 48 | void WriteLong(long value); |
| 49 | |
| 50 | /// <summary> |
| 51 | /// Writes a float value. |
| 52 | /// </summary> |
| 53 | /// <param name="value">Value to write.</param> |
| 54 | void WriteFloat(float value); |
| 55 | |
| 56 | /// <summary> |
| 57 | /// Writes a double value. |
| 58 | /// </summary> |
| 59 | /// <param name="value">Value to write.</param> |
| 60 | void WriteDouble(double value); |
| 61 | |
| 62 | /// <summary> |
| 63 | /// Writes a byte string. |
| 64 | /// </summary> |
| 65 | /// <param name="value">Value to write.</param> |
| 66 | void WriteBytes(byte[] value); |
| 67 | |
| 68 | /// <summary> |
| 69 | /// Writes a byte string. |
| 70 | /// </summary> |
| 71 | /// <param name="value">The byte[] to be read (fully or partially)</param> |
| 72 | /// <param name="offset">The offset from the beginning of the byte[] to start writing</param> |
| 73 | /// <param name="length">The length of the data to be read from the byte[].</param> |
| 74 | |
| 75 | void WriteBytes(byte[] value, int offset, int length); |
| 76 | |
| 77 | /// <summary> |
| 78 | /// Writes an Unicode string. |
| 79 | /// </summary> |
| 80 | /// <param name="value">Value to write.</param> |
| 81 | void WriteString(string value); |
| 82 |
no outgoing calls
no test coverage detected
searching dependent graphs…