internal static void Write(sbyte[] source, WritableBuffer target) { for (int i = 0; i < source.Length; i++) { target.PutByte(i, source[i]); } }
protected internal override void WriteFormatSpecifier(WritableBuffer formatSpecifier) { for (int i = 0; i < formatSpecifier.Size(); i++) { formatSpecifier.PutByte(i, unchecked (( sbyte )0xFF)); } }
private static void AwriteKey(string key, WritableBuffer buffer) { for (int i = 0; i < key.Length; i++) { char c = key[i]; if (c == ( char )0 || c >= ( char )128) { throw new System.ArgumentException("Only ASCII keys allowed."); } buffer.PutByte(i, ( sbyte )c); } }
protected internal override void WriteFormatSpecifier(WritableBuffer formatSpecifier) { formatSpecifier.PutByte(0, unchecked (( sbyte )0xFF)); formatSpecifier.PutByte(formatSpecifier.Size() - 1, unchecked ((sbyte)0xFF)); }