├── .filetree ├── .github └── workflows │ └── main.yml ├── .project ├── .smalltalk.ston ├── README.md ├── doc ├── HowToInstall.md └── HowToUse.md └── repository ├── .filetree ├── .properties ├── BaselineOfMessagePack.package ├── .filetree ├── BaselineOfMessagePack.class │ ├── README.md │ ├── instance │ │ ├── baseline..st │ │ └── preLoadForPharo.st │ └── properties.json ├── monticello.meta │ ├── categories.st │ ├── initializers.st │ └── package └── properties.json ├── ConfigurationOfMessagePack.package ├── .filetree ├── ConfigurationOfMessagePack.class │ ├── README.md │ ├── class │ │ ├── bootstrapPackage.from..st │ │ ├── catalogChangeLog.st │ │ ├── catalogDescription.st │ │ ├── catalogKeyClassesAndExample.st │ │ ├── catalogKeywords.st │ │ ├── compareVersions.st │ │ ├── createNewDevelopmentVersion.st │ │ ├── ensureMetacello.st │ │ ├── isMetacelloConfig.st │ │ ├── lastMetacelloVersionLoad.st │ │ ├── load.st │ │ ├── loadDevelopment.st │ │ ├── metacelloVersion.loads..st │ │ ├── project.st │ │ ├── updateToLatestPackageVersions..st │ │ └── validate.st │ ├── instance │ │ ├── baseline100..st │ │ ├── baseline101..st │ │ ├── baseline120..st │ │ ├── baseline130..st │ │ ├── development..st │ │ ├── preLoadForPharo.st │ │ ├── project.st │ │ ├── stable..st │ │ ├── version100..st │ │ ├── version101..st │ │ ├── version102..st │ │ ├── version103..st │ │ ├── version104..st │ │ ├── version120..st │ │ ├── version121..st │ │ ├── version122..st │ │ ├── version123..st │ │ ├── version124..st │ │ ├── version125..st │ │ ├── version126..st │ │ ├── version127..st │ │ ├── version128..st │ │ ├── version129..st │ │ ├── version129a..st │ │ ├── version130..st │ │ └── version131..st │ ├── methodProperties.json │ └── properties.json ├── monticello.meta │ ├── categories.st │ ├── initializers.st │ ├── package │ └── version └── properties.json ├── MessagePack-Core.package ├── .filetree ├── Array.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── Behavior.extension │ ├── instance │ │ ├── fromMessagePack..st │ │ └── fromMessagePack.setting..st │ └── properties.json ├── ByteArray.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── Dictionary.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── False.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── IdentityDictionary.extension │ ├── instance │ │ ├── asMpMap.st │ │ └── mpWriteSelector.st │ └── properties.json ├── Integer.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── MpConstants.class │ ├── README.md │ ├── class │ │ ├── array16.st │ │ ├── array32.st │ │ ├── bin16.st │ │ ├── bin32.st │ │ ├── bin8.st │ │ ├── boolFalse.st │ │ ├── boolTrue.st │ │ ├── double.st │ │ ├── ext16.st │ │ ├── ext32.st │ │ ├── ext8.st │ │ ├── fixext1.st │ │ ├── fixext16.st │ │ ├── fixext2.st │ │ ├── fixext4.st │ │ ├── fixext8.st │ │ ├── float.st │ │ ├── int16.st │ │ ├── int32.st │ │ ├── int64.st │ │ ├── int8.st │ │ ├── map16.st │ │ ├── map32.st │ │ ├── str16.st │ │ ├── str32.st │ │ ├── str8.st │ │ ├── timestamp.st │ │ ├── uint16.st │ │ ├── uint32.st │ │ ├── uint64.st │ │ ├── uint8.st │ │ └── undefinedNil.st │ └── properties.json ├── MpDecodeTypeMapper.class │ ├── README.md │ ├── class │ │ ├── defineArrayActionTo..st │ │ ├── defineBinBytesActionTo..st │ │ ├── defineCompoundsActionsTo..st │ │ ├── defineDoubleActionTo..st │ │ ├── defineExtsActionsTo..st │ │ ├── defineFalseActionTo..st │ │ ├── defineFloatActionTo..st │ │ ├── defineIntegerActionTo..st │ │ ├── defineMapActionTo..st │ │ ├── defineNilActionTo..st │ │ ├── definePrimitivesActionsTo..st │ │ ├── defineStrBytesActionTo..st │ │ ├── defineTrueActionTo..st │ │ ├── defineUnsignedIntegerActionTo..st │ │ └── on..st │ ├── instance │ │ ├── bytesAsRaw.st │ │ ├── bytesAsString.st │ │ ├── decoder..st │ │ ├── decoder.st │ │ ├── isBytesAsString..st │ │ ├── isBytesAsString.st │ │ └── readObjectOf.ifNotApplied..st │ └── properties.json ├── MpDecoder.class │ ├── README.md │ ├── class │ │ ├── decode..st │ │ ├── decode.setting..st │ │ ├── decodeFrom..st │ │ ├── decodeFrom.setting..st │ │ ├── on..st │ │ └── onBytes..st │ ├── instance │ │ ├── atEnd.st │ │ ├── buildTypeMapper..st │ │ ├── createArray..st │ │ ├── createDictionary..st │ │ ├── createOrderedCollection..st │ │ ├── decode..st │ │ ├── decode.setting..st │ │ ├── decode.st │ │ ├── decodeFrom..st │ │ ├── decodeFrom.setting..st │ │ ├── next.st │ │ ├── read.st │ │ ├── readArray16.st │ │ ├── readArray32.st │ │ ├── readArraySized..st │ │ ├── readBin16.st │ │ ├── readBin32.st │ │ ├── readBin8.st │ │ ├── readDouble.st │ │ ├── readExt16.st │ │ ├── readExt32.st │ │ ├── readExt8.st │ │ ├── readExtSized.as..st │ │ ├── readFalse.st │ │ ├── readFixArray..st │ │ ├── readFixMap..st │ │ ├── readFixRaw..st │ │ ├── readFixStr..st │ │ ├── readFixString..st │ │ ├── readFixedTimestamp..st │ │ ├── readFixext.as..st │ │ ├── readFixext1.st │ │ ├── readFixext16.st │ │ ├── readFixext2.st │ │ ├── readFixext4.st │ │ ├── readFixext8.st │ │ ├── readFloat.st │ │ ├── readInt16.st │ │ ├── readInt32.st │ │ ├── readInt64.st │ │ ├── readInt8.st │ │ ├── readMap16.st │ │ ├── readMap32.st │ │ ├── readMapSized..st │ │ ├── readNegativeFixNum..st │ │ ├── readNil.st │ │ ├── readObject.st │ │ ├── readObjectOf..st │ │ ├── readObjectOf.ifNotApplied..st │ │ ├── readPositiveFixNum..st │ │ ├── readRaw16.st │ │ ├── readRaw32.st │ │ ├── readStr16.st │ │ ├── readStr32.st │ │ ├── readStr8.st │ │ ├── readStream..st │ │ ├── readStream.st │ │ ├── readString16.st │ │ ├── readString32.st │ │ ├── readString8.st │ │ ├── readTimestamp32..st │ │ ├── readTimestamp64..st │ │ ├── readTimestamp96..st │ │ ├── readTrue.st │ │ ├── readType.st │ │ ├── readUint16.st │ │ ├── readUint32.st │ │ ├── readUint64.st │ │ ├── readUint8.st │ │ ├── settings.st │ │ ├── settingsClass.st │ │ ├── signalError..st │ │ ├── signalError.st │ │ ├── typeMapper.st │ │ └── typeMapperClass.st │ └── properties.json ├── MpEncodeTypeMapper.class │ ├── README.md │ ├── class │ │ ├── defineArrayActionTo..st │ │ ├── defineBinBytesActionTo..st │ │ ├── defineCompoundsActionsTo..st │ │ ├── defineDoubleActionTo..st │ │ ├── defineExtsActionsTo..st │ │ ├── defineFalseActionTo..st │ │ ├── defineFloatActionTo..st │ │ ├── defineIntegerActionTo..st │ │ ├── defineMapActionTo..st │ │ ├── defineNilActionTo..st │ │ ├── definePrimitivesActionsTo..st │ │ ├── defineStrBytesActionTo..st │ │ ├── defineSymbolActionTo..st │ │ ├── defineTimestampActionTo..st │ │ ├── defineTrueActionTo..st │ │ └── on..st │ ├── instance │ │ ├── bytesAsRaw.st │ │ ├── encoder..st │ │ ├── encoder.st │ │ ├── stringAsBytes.st │ │ ├── stringAsError.st │ │ └── writeObject.ifNotApplied..st │ └── properties.json ├── MpEncoder.class │ ├── README.md │ ├── class │ │ ├── encode..st │ │ ├── encode.on..st │ │ ├── encode.on.setting..st │ │ ├── encode.setting..st │ │ ├── on..st │ │ └── onBytes..st │ ├── instance │ │ ├── buildTypeMapper..st │ │ ├── buildTypeMapperFor2008..st │ │ ├── buildTypeMapperFor2013..st │ │ ├── contents.st │ │ ├── createWriteStream.st │ │ ├── encode..st │ │ ├── encode.on..st │ │ ├── encode.on.setting..st │ │ ├── encode.setting..st │ │ ├── nextPut..st │ │ ├── nextPutAll..st │ │ ├── settings.st │ │ ├── settingsClass.st │ │ ├── signalError..st │ │ ├── signalError.st │ │ ├── typeMapper.st │ │ ├── typeMapperClass.st │ │ ├── write.on..st │ │ ├── writeArray..st │ │ ├── writeArraySize..st │ │ ├── writeBinBytes..st │ │ ├── writeBinBytesSize..st │ │ ├── writeDouble..st │ │ ├── writeExt..st │ │ ├── writeExt.as..st │ │ ├── writeExt16.as..st │ │ ├── writeExt32.as..st │ │ ├── writeExt8.as..st │ │ ├── writeFalse..st │ │ ├── writeFixext..st │ │ ├── writeFixext.as..st │ │ ├── writeFixext1.as..st │ │ ├── writeFixext16.as..st │ │ ├── writeFixext2.as..st │ │ ├── writeFixext4.as..st │ │ ├── writeFixext8.as..st │ │ ├── writeFloat..st │ │ ├── writeInt16..st │ │ ├── writeInt32..st │ │ ├── writeInt64..st │ │ ├── writeInt8..st │ │ ├── writeInteger..st │ │ ├── writeMap..st │ │ ├── writeMapSize..st │ │ ├── writeNegativeFixNum..st │ │ ├── writeNil..st │ │ ├── writeObject..st │ │ ├── writeObject.ifNotApplied..st │ │ ├── writePositiveFixNum..st │ │ ├── writeRawBytes..st │ │ ├── writeStrBytes..st │ │ ├── writeStrBytesSize..st │ │ ├── writeStream..st │ │ ├── writeStream.st │ │ ├── writeString..st │ │ ├── writeTimestamp..st │ │ ├── writeTimestamp32..st │ │ ├── writeTimestamp64..st │ │ ├── writeTimestamp96.nanos..st │ │ ├── writeTrue..st │ │ ├── writeUint16..st │ │ ├── writeUint32..st │ │ ├── writeUint64..st │ │ ├── writeUint8..st │ │ ├── writeUnknown.withHandler..st │ │ └── writeWideString..st │ └── properties.json ├── MpError.class │ ├── README.md │ ├── class │ │ ├── decode.st │ │ └── encode.st │ ├── instance │ │ ├── type..st │ │ └── type.st │ └── properties.json ├── MpExtValue.class │ ├── README.md │ ├── class │ │ └── typeCode.data..st │ ├── instance │ │ ├── data..st │ │ ├── data.st │ │ ├── printDescriptionOn..st │ │ ├── printOn..st │ │ ├── size.st │ │ ├── typeCode..st │ │ └── typeCode.st │ └── properties.json ├── MpFixextValue.class │ ├── README.md │ ├── instance │ │ └── printOn..st │ └── properties.json ├── MpMemoryWriteStream.class │ ├── README.md │ ├── class │ │ ├── chunkSized..st │ │ └── new.st │ ├── instance │ │ ├── asByteArray.st │ │ ├── chunkPosition..st │ │ ├── chunkPosition.st │ │ ├── chunkSize..st │ │ ├── chunkSize.st │ │ ├── chunks..st │ │ ├── chunks.st │ │ ├── contents.st │ │ ├── currentChunk..st │ │ ├── currentChunk.st │ │ ├── initialize.st │ │ ├── lastSize..st │ │ ├── lastSize.st │ │ ├── makeSpace.st │ │ ├── moveToNext.st │ │ ├── nextPut..st │ │ ├── nextPutAll..st │ │ ├── position.st │ │ ├── prepareCurrentChunk.st │ │ ├── putBytes.sized..st │ │ └── size.st │ └── properties.json ├── MpMessagePack.class │ ├── README.md │ ├── class │ │ ├── pack..st │ │ ├── packUnpack..st │ │ └── unpack..st │ └── properties.json ├── MpPortableUtil.class │ ├── README.md │ ├── class │ │ ├── default.st │ │ ├── detectDialogSpecificClass.st │ │ ├── dialectSpecificClass..st │ │ ├── dialectSpecificClass.st │ │ └── initialize.st │ ├── instance │ │ ├── bytesFromString..st │ │ ├── collectionEquals.with..st │ │ ├── encodeTypeMapperClass.st │ │ ├── newCollection.sized.withAll..st │ │ ├── randomClass.st │ │ ├── readDoubleFrom..st │ │ ├── readFloatFrom..st │ │ ├── readInt16From..st │ │ ├── readInt32From..st │ │ ├── readInt64From..st │ │ ├── readUint16From..st │ │ ├── readUint32From..st │ │ ├── readUint64From..st │ │ ├── signalException..st │ │ ├── stringFromBytes..st │ │ ├── timestampFromSeconds.nanos..st │ │ ├── unixSecondsWithNanosecondsFrom..st │ │ ├── useFastBulkWrite.st │ │ ├── writeDouble.to..st │ │ ├── writeFloat.to..st │ │ ├── writeInt16.to..st │ │ ├── writeInt32.to..st │ │ ├── writeInt64.to..st │ │ ├── writeUint16.to..st │ │ ├── writeUint32.to..st │ │ └── writeUint64.to..st │ └── properties.json ├── MpSettings.class │ ├── README.md │ ├── instance │ │ ├── at..st │ │ ├── at.ifAbsent..st │ │ ├── at.ifAbsentPut..st │ │ ├── at.put..st │ │ ├── bytesAsString..st │ │ ├── bytesAsString.st │ │ ├── decodeMode..st │ │ ├── decodeMode.st │ │ ├── defaultStreamSize..st │ │ ├── defaultStreamSize.st │ │ ├── encodeMode..st │ │ ├── encodeMode.st │ │ ├── fastBulkWrite..st │ │ ├── fastBulkWrite.st │ │ ├── formatVersion..st │ │ ├── formatVersion.st │ │ ├── includesKey..st │ │ ├── initialize.st │ │ ├── keys.st │ │ ├── legacyFormat.st │ │ ├── printOn..st │ │ ├── settingsDict.st │ │ ├── stringAsBytes..st │ │ ├── stringAsBytes.st │ │ ├── symbolAsString..st │ │ └── symbolAsString.st │ └── properties.json ├── MpTypeMapper.class │ ├── README.md │ ├── class │ │ ├── actionMap.st │ │ ├── createActionMap.st │ │ ├── defineCompoundsActionsTo..st │ │ ├── defineExtsActionsTo..st │ │ ├── definePrimitivesActionsTo..st │ │ ├── initialize.st │ │ └── initializeAll.st │ ├── instance │ │ ├── actionMap.st │ │ ├── defaultActionMap.st │ │ └── initActionMaps.st │ └── properties.json ├── Object.extension │ ├── instance │ │ ├── asMpConverted.st │ │ ├── asMpMap.st │ │ ├── messagePacked..st │ │ ├── messagePacked.st │ │ └── mpWriteSelector.st │ └── properties.json ├── Symbol.extension │ ├── instance │ │ └── asMpConverted.st │ └── properties.json ├── True.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── UndefinedObject.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── monticello.meta │ ├── categories.st │ ├── initializers.st │ └── package └── properties.json ├── MessagePack-Pharo-Core.package ├── .filetree ├── DateAndTime.extension │ ├── instance │ │ └── setNanoSeconds..st │ └── properties.json ├── Integer.extension │ ├── instance │ │ └── digitAt..st │ └── properties.json ├── MpPhEncodeTypeMapper.class │ ├── README.md │ ├── class │ │ └── defineTimestampActionTo..st │ └── properties.json ├── MpPhPortableUtil.class │ ├── README.md │ ├── instance │ │ ├── bytesFromString..st │ │ ├── encodeTypeMapperClass.st │ │ ├── stringFromBytes..st │ │ └── timestampFromSeconds.nanos..st │ └── properties.json ├── monticello.meta │ ├── categories.st │ ├── initializers.st │ └── package └── properties.json ├── MessagePack-Squeak-Core.package ├── .filetree ├── MpMemoryWriteStream.extension │ ├── instance │ │ ├── int16..st │ │ ├── int16.st │ │ ├── int32..st │ │ ├── int32.st │ │ ├── int64..st │ │ ├── int64.st │ │ ├── uint16..st │ │ ├── uint16.st │ │ ├── uint32..st │ │ ├── uint32.st │ │ ├── uint64..st │ │ └── uint64.st │ └── properties.json ├── MpSqEncodeTypeMapper.class │ ├── README.md │ ├── class │ │ ├── defineDoubleActionTo..st │ │ └── defineStrBytesActionTo..st │ ├── instance │ │ ├── stringAsBytes.st │ │ ├── stringAsError.st │ │ ├── symbolAsError.st │ │ └── symbolAsString.st │ └── properties.json ├── MpSqPortableUtil.class │ ├── README.md │ ├── class │ │ └── activate.st │ ├── instance │ │ ├── bytesFromString..st │ │ ├── encodeTypeMapperClass.st │ │ ├── readDoubleFrom..st │ │ ├── readFloatFrom..st │ │ ├── readInt16From..st │ │ ├── readInt32From..st │ │ ├── readInt64From..st │ │ ├── readUint16From..st │ │ ├── readUint32From..st │ │ ├── readUint64From..st │ │ ├── stringFromBytes..st │ │ ├── timestampFromSeconds.nanos..st │ │ ├── unixSecondsWithNanosecondsFrom..st │ │ ├── writeDouble.to..st │ │ ├── writeFloat.to..st │ │ ├── writeInt16.to..st │ │ ├── writeInt32.to..st │ │ ├── writeInt64.to..st │ │ ├── writeUint16.to..st │ │ ├── writeUint32.to..st │ │ └── writeUint64.to..st │ └── properties.json ├── PositionableStream.extension │ ├── instance │ │ ├── int64..st │ │ ├── int64.st │ │ ├── uint64..st │ │ └── uint64.st │ └── properties.json ├── monticello.meta │ ├── categories.st │ ├── initializers.st │ └── package └── properties.json ├── MessagePack-VW.package ├── Double.extension │ ├── instance │ │ └── mpWriteSelector.st │ └── properties.json ├── MpVwEncodeTypeMapper.class │ ├── class │ │ ├── defineDoubleActionTo..st │ │ └── defineFloatActionTo..st │ ├── instance │ │ └── stringAsBytes.st │ └── properties.json ├── MpVwPortableUtil.class │ ├── class │ │ └── initialize.st │ ├── instance │ │ ├── bytesFromString..st │ │ ├── encodeTypeMapperClass.st │ │ ├── readDoubleFrom..st │ │ ├── readFloatFrom..st │ │ ├── readInt16From..st │ │ ├── readInt32From..st │ │ ├── readInt64From..st │ │ ├── readUint16From..st │ │ ├── readUint32From..st │ │ ├── readUint64From..st │ │ ├── signalException..st │ │ ├── useFastBulkWrite.st │ │ ├── writeDouble.to..st │ │ ├── writeFloat.to..st │ │ ├── writeInt16.to..st │ │ ├── writeInt32.to..st │ │ ├── writeInt64.to..st │ │ ├── writeUint16.to..st │ │ ├── writeUint32.to..st │ │ └── writeUint64.to..st │ └── properties.json └── properties.json └── MessagePackTest.package ├── .filetree ├── MpPackUnpackTestCase.class ├── README.md ├── instance │ ├── complexArraysArray.st │ ├── complexCollectionSizes.st │ ├── complexMapsArray.st │ ├── createArraySized..st │ ├── createByteStringSized..st │ ├── createComplexArraySized..st │ ├── createComplexMapSized..st │ ├── createExtSized..st │ ├── createFixExtSized..st │ ├── createRawBytesSized..st │ ├── createSimpleArraySized..st │ ├── createSimpleMapSized..st │ ├── floatsArray.st │ ├── integersArray.st │ ├── mapSizes.st │ ├── max32Timestamp.st │ ├── max64Timestamp.st │ ├── max96Timestamp.st │ ├── min96Timestamp.st │ ├── rawBytesArray.st │ ├── rawBytesSizes.st │ ├── rawExtValueArray.st │ ├── rawFixExtValueArray.st │ ├── rawStringArray.st │ ├── simpleArraysArray.st │ ├── simpleCollectionSizes.st │ ├── simpleMapsArray.st │ ├── testPackUnpackArray.st │ ├── testPackUnpackBinBytes.st │ ├── testPackUnpackComplexArray.st │ ├── testPackUnpackComplexMap.st │ ├── testPackUnpackExt.st │ ├── testPackUnpackFalse.st │ ├── testPackUnpackFixExt.st │ ├── testPackUnpackFloatingPoint.st │ ├── testPackUnpackInteger.st │ ├── testPackUnpackMap.st │ ├── testPackUnpackNil.st │ ├── testPackUnpackRawBytes.st │ ├── testPackUnpackStrBytes.st │ ├── testPackUnpackSymbolBytes.st │ ├── testPackUnpackTimestamp32.st │ ├── testPackUnpackTimestamp64.st │ ├── testPackUnpackTimestamp96.st │ ├── testPackUnpackTrue.st │ └── unixEpochTimestamp.st ├── methodProperties.json └── properties.json ├── MpSettingsTestCase.class ├── README.md ├── instance │ ├── arrayWithNil.st │ ├── arrayWithUnknown.st │ ├── complexDictionaryAfterConverted.st │ ├── complexIdentityDictionary.st │ ├── dictionaryWithNil.st │ ├── dictionaryWithUnknown.st │ ├── simpleIdentityDictionary.st │ ├── simpleString.st │ ├── simpleStringContainedArray.st │ ├── stringSizes.st │ ├── stringsArray.st │ ├── testPackStringArrayAsArrayOfBytes.st │ ├── testPackStringAsBytes.st │ ├── testPackUnknownContainedArray.st │ ├── testPackUnknownContainedDictionary.st │ ├── testPackUnpackComplexIdentityDictionary.st │ ├── testPackUnpackSimpleIdentityDictionary.st │ ├── testPackUnpackStrings.st │ └── testUnpackBytesAsString.st ├── methodProperties.json └── properties.json ├── MpStringUnpackTestCase.class ├── README.md ├── instance │ ├── encodeRandomBin16..st │ ├── encodeRandomBin32..st │ ├── encodeRandomBin8..st │ ├── encodeString8..st │ ├── testUnpackBinFamilyBytes.st │ └── testUnpackString8.st ├── methodProperties.json └── properties.json ├── MpTestCase.class ├── README.md ├── instance │ ├── atRandom..st │ ├── collectionEquals.with..st │ ├── createStringSized..st │ └── newCollection.sized.withAll..st ├── methodProperties.json └── properties.json ├── monticello.meta ├── categories.st ├── initializers.st ├── package └── version └── properties.json /.filetree: -------------------------------------------------------------------------------- 1 | { "packageExtension" : ".package" } -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | { 2 | 'srcDirectory' : 'repository' 3 | } -------------------------------------------------------------------------------- /.smalltalk.ston: -------------------------------------------------------------------------------- 1 | SmalltalkCISpec { 2 | #loading : [ 3 | SCIMetacelloLoadSpec { 4 | #baseline : 'MessagePack', 5 | #directory : 'repository', 6 | #load : [ 'default' ], 7 | #onConflict : #useLoaded, 8 | #useLatestMetacello : false, 9 | #onWarningLog : true, 10 | #platforms : [ #pharo, #squeak ] 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /repository/.filetree: -------------------------------------------------------------------------------- 1 | { "packageExtension" : ".package" } 2 | -------------------------------------------------------------------------------- /repository/.properties: -------------------------------------------------------------------------------- 1 | { 2 | #format : #filetree 3 | } -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/.filetree: -------------------------------------------------------------------------------- 1 | { 2 | "separateMethodMetaAndSource" : false, 3 | "noMethodMetaData" : true, 4 | "useCypressPropertiesFile" : true 5 | } -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/BaselineOfMessagePack.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/BaselineOfMessagePack.package/BaselineOfMessagePack.class/README.md -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/BaselineOfMessagePack.class/instance/preLoadForPharo.st: -------------------------------------------------------------------------------- 1 | doits 2 | preLoadForPharo 3 | Smalltalk globals at: #MpPhPortableUtil ifPresent: [ :cls | cls activate]. -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/BaselineOfMessagePack.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "BaselineOf", 4 | "category" : "BaselineOfMessagePack", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "BaselineOfMessagePack", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/monticello.meta/categories.st: -------------------------------------------------------------------------------- 1 | SystemOrganization addCategory: #BaselineOfMessagePack! 2 | -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/monticello.meta/initializers.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/BaselineOfMessagePack.package/monticello.meta/initializers.st -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/monticello.meta/package: -------------------------------------------------------------------------------- 1 | (name 'BaselineOfMessagePack') -------------------------------------------------------------------------------- /repository/BaselineOfMessagePack.package/properties.json: -------------------------------------------------------------------------------- 1 | { } -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/.filetree: -------------------------------------------------------------------------------- 1 | { 2 | "separateMethodMetaAndSource" : false, 3 | "noMethodMetaData" : true, 4 | "useCypressPropertiesFile" : true 5 | } -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/README.md -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/bootstrapPackage.from..st: -------------------------------------------------------------------------------- 1 | private 2 | bootstrapPackage: aString from: aPath 3 | | repository version | 4 | repository := MCHttpRepository 5 | location: aPath 6 | user: '' 7 | password: ''. 8 | repository 9 | versionReaderForFileNamed: aString , '.mcz' 10 | do: [:reader | 11 | version := reader version. 12 | version load. 13 | version workingCopy repositoryGroup addRepository: repository] -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/catalogDescription.st: -------------------------------------------------------------------------------- 1 | catalog 2 | catalogDescription 3 | 4 | ^ 5 | 'MessagePack serialization library for various Smalltalk dialects. 6 | 7 | Currently runs on: 8 | 9 | - Squeak 10 | - Pharo 11 | - VisualWorks 12 | - VA Smalltalk 13 | - Dolphin Smalltalk 14 | - GNU Smalltalk (Beta) 15 | - Cuis 16 | 17 | For more info, please see the github project page (https://github.com/msgpack/msgpack-smalltalk). 18 | 19 | ' -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/catalogKeywords.st: -------------------------------------------------------------------------------- 1 | catalog 2 | catalogKeywords 3 | ^ #(portable serializer binary json messagepack) -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/compareVersions.st: -------------------------------------------------------------------------------- 1 | development support 2 | compareVersions 3 | "Compare previous version to development version" 4 | 5 | "self compareVersions" 6 | 7 | "Note: you need 1.0-beta.28 or later for the class MetacelloToolBox" 8 | 9 | self ensureMetacello. 10 | ((Smalltalk at: #MetacelloToolBox) compareVersionsIn: self) inspect 11 | -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/createNewDevelopmentVersion.st: -------------------------------------------------------------------------------- 1 | development support 2 | createNewDevelopmentVersion 3 | "Create a new development version using the #stable version as model." 4 | 5 | "self createNewDevelopmentVersion" 6 | 7 | "Note: you need 1.0-beta.28 or later for the class MetacelloToolBox" 8 | 9 | self ensureMetacello. 10 | (Smalltalk at: #MetacelloToolBox) createNewDevelopmentVersionIn: self description: '' -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/isMetacelloConfig.st: -------------------------------------------------------------------------------- 1 | metacello tool support 2 | isMetacelloConfig 3 | "Answer true and the Metacello tools will operate on you" 4 | 5 | ^true -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/lastMetacelloVersionLoad.st: -------------------------------------------------------------------------------- 1 | metacello tool support 2 | lastMetacelloVersionLoad 3 | "Answer the last version loaded and the list of packages loaded for that version." 4 | 5 | LastVersionLoad == nil ifTrue: [ LastVersionLoad := nil -> 'default' ]. 6 | ^LastVersionLoad -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/load.st: -------------------------------------------------------------------------------- 1 | loading 2 | load 3 | "self load" 4 | 5 | 6 | ^(self project version: #stable) load -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/loadDevelopment.st: -------------------------------------------------------------------------------- 1 | loading 2 | loadDevelopment 3 | 4 | "self loadDevelopment" 5 | 6 | 7 | ^(self project version: #development) load -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/metacelloVersion.loads..st: -------------------------------------------------------------------------------- 1 | metacello tool support 2 | metacelloVersion: versionString loads: anArrayOrString 3 | "Stash the last version loaded and the list of packages loaded for that version. The list 4 | of packages will be used by the tools when doing 'Load Package Version'" 5 | 6 | LastVersionLoad := versionString -> anArrayOrString -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/project.st: -------------------------------------------------------------------------------- 1 | accessing 2 | project 3 | 4 | ^self new project -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/class/updateToLatestPackageVersions..st: -------------------------------------------------------------------------------- 1 | development support 2 | updateToLatestPackageVersions: descriptionString 3 | "Updates mcz file versions in current version" 4 | 5 | "self updateToLatestPackageVersions: '- fixed a bug'" 6 | 7 | "Note: you need 1.0-beta.28 or later for the class MetacelloToolBox" 8 | 9 | self ensureMetacello. 10 | ((Smalltalk at: #MetacelloToolBox) updateToLatestPackageVersionsIn: self description: descriptionString) isEmpty 11 | ifTrue: [ self inform: 'All specs up to date' ] -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/development..st: -------------------------------------------------------------------------------- 1 | symbolic versions 2 | development: spec 3 | 4 | 5 | spec for: #'common' version: '1.3.0'. 6 | -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/preLoadForPharo.st: -------------------------------------------------------------------------------- 1 | doits 2 | preLoadForPharo 3 | Smalltalk globals at: #MpPhPortableUtil ifPresent: [ :cls | cls initialize]. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/project.st: -------------------------------------------------------------------------------- 1 | accessing 2 | project 3 | 4 | ^ project ifNil: [ | constructor | 5 | "Bootstrap Metacello if it is not already loaded" 6 | self class ensureMetacello. 7 | "Construct Metacello project" 8 | constructor := (Smalltalk at: #MetacelloVersionConstructor) on: self. 9 | project := constructor project. 10 | project loadType: #linear. 11 | "use atomic load on GemStone to resolve some loading issues" 12 | Smalltalk at: #SystemVersion ifAbsent: [ project loadType: #atomic ]. 13 | project ] -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/stable..st: -------------------------------------------------------------------------------- 1 | symbolic versions 2 | stable: spec 3 | 4 | 5 | spec for: #'common' version: '1.3.1'. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version100..st: -------------------------------------------------------------------------------- 1 | versions 2 | version100: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #beta. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-mu.4'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-mu.2' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.1']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version101..st: -------------------------------------------------------------------------------- 1 | versions 2 | version101: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #release. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-mu.6'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-mu.2' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.1']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version102..st: -------------------------------------------------------------------------------- 1 | versions 2 | version102: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #release. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-mu.8'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-mu.3' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.1']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version103..st: -------------------------------------------------------------------------------- 1 | versions 2 | version103: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #beta. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-mu.15'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-mu.3' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.2']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version104..st: -------------------------------------------------------------------------------- 1 | versions 2 | version104: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #beta. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-mu.16'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-mu.3' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.3']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version120..st: -------------------------------------------------------------------------------- 1 | versions 2 | version120: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #beta. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-mu.27'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.9' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.4']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version121..st: -------------------------------------------------------------------------------- 1 | versions 2 | version121: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.33'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.11' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-mu.4']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version122..st: -------------------------------------------------------------------------------- 1 | versions 2 | version122: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.34'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.12' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MU.5']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version123..st: -------------------------------------------------------------------------------- 1 | versions 2 | version123: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.35'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.13' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.6']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version124..st: -------------------------------------------------------------------------------- 1 | versions 2 | version124: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.36'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.14' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.7']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version125..st: -------------------------------------------------------------------------------- 1 | versions 2 | version125: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.37'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.14' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.7']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version126..st: -------------------------------------------------------------------------------- 1 | versions 2 | version126: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.39'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.14' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.9']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version127..st: -------------------------------------------------------------------------------- 1 | versions 2 | version127: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.40'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.15' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.9']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version128..st: -------------------------------------------------------------------------------- 1 | versions 2 | version128: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.40'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.16' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.10']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version129..st: -------------------------------------------------------------------------------- 1 | versions 2 | version129: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.40'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.17' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.10']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/instance/version129a..st: -------------------------------------------------------------------------------- 1 | versions 2 | version129a: spec 3 | 4 | 5 | spec for: #common do: [ 6 | spec blessing: #development. 7 | spec author: 'Masashi Umezawa'. 8 | spec 9 | package: 'MessagePack-Core' with: 'MessagePack-Core-MasashiUmezawa.41'; 10 | package: 'MessagePackTest' with: 'MessagePackTest-MasashiUmezawa.17' ]. 11 | spec for: #squeakCommon do: [ 12 | spec 13 | package: 'MessagePack-Squeak-Core' with: 'MessagePack-Squeak-Core-MasashiUmezawa.12']. -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/ConfigurationOfMessagePack.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "ConfigurationOfMessagePack", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ 8 | "LastVersionLoad" 9 | ], 10 | "instvars" : [ 11 | "project" 12 | ], 13 | "name" : "ConfigurationOfMessagePack", 14 | "type" : "normal" 15 | } -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/monticello.meta/categories.st: -------------------------------------------------------------------------------- 1 | SystemOrganization addCategory: #ConfigurationOfMessagePack! 2 | -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/monticello.meta/initializers.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/ConfigurationOfMessagePack.package/monticello.meta/initializers.st -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/monticello.meta/package: -------------------------------------------------------------------------------- 1 | (name 'ConfigurationOfMessagePack') -------------------------------------------------------------------------------- /repository/ConfigurationOfMessagePack.package/properties.json: -------------------------------------------------------------------------------- 1 | { } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/.filetree: -------------------------------------------------------------------------------- 1 | { 2 | "separateMethodMetaAndSource" : false, 3 | "noMethodMetaData" : true, 4 | "useCypressPropertiesFile" : true 5 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Array.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | self class == Array ifTrue: [^#writeArray:]. 4 | ^nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Array.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Array" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Behavior.extension/instance/fromMessagePack..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-unpacking 2 | fromMessagePack: bytes 3 | ^ MpDecoder decode: bytes -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Behavior.extension/instance/fromMessagePack.setting..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-unpacking 2 | fromMessagePack: bytes setting: settingBlock 3 | ^ MpDecoder decode: bytes setting: settingBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Behavior.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Behavior" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/ByteArray.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | self class == ByteArray ifTrue: [^#writeBinBytes:]. 4 | ^nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/ByteArray.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "ByteArray" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Dictionary.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | self class == Dictionary ifTrue: [^#writeMap:]. 4 | ^nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Dictionary.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Dictionary" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/False.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | ^#writeFalse: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/False.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "False" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/IdentityDictionary.extension/instance/asMpMap.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-converting 2 | asMpMap 3 | | dic | 4 | dic := Dictionary new: self size. 5 | self keysAndValuesDo: [:k :v | dic at: k put: v]. 6 | ^dic -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/IdentityDictionary.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | ^nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/IdentityDictionary.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "IdentityDictionary" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Integer.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | ^#writeInteger: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Integer.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Integer" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpConstants.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/array16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | array16 3 | ^16rDC -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/array32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | array32 3 | ^16rDD -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/bin16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | bin16 3 | ^16rC5 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/bin32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | bin32 3 | ^16rC6 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/bin8.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | bin8 3 | ^16rC4 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/boolFalse.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | boolFalse 3 | ^16rC2 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/boolTrue.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | boolTrue 3 | ^16rC3 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/double.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | double 3 | ^16rCB -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/ext16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | ext16 3 | ^16rC8 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/ext32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | ext32 3 | ^16rC9 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/ext8.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | ext8 3 | ^16rC7 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/fixext1.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | fixext1 3 | ^16rD4 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/fixext16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | fixext16 3 | ^16rD8 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/fixext2.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | fixext2 3 | ^16rD5 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/fixext4.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | fixext4 3 | ^16rD6 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/fixext8.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | fixext8 3 | ^16rD7 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/float.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | float 3 | ^16rCA -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/int16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | int16 3 | ^16rD1 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/int32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | int32 3 | ^16rD2 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/int64.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | int64 3 | ^16rD3 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/int8.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | int8 3 | ^16rD0 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/map16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | map16 3 | ^16rDE -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/map32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | map32 3 | ^16rDF -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/str16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | str16 3 | ^16rDA -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/str32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | str32 3 | ^16rDB -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/str8.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | str8 3 | ^16rD9 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/timestamp.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | timestamp 3 | ^16rFF -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/uint16.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | uint16 3 | ^16rCD -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/uint32.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | uint32 3 | ^16rCE -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/uint64.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | uint64 3 | ^16rCF -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/uint8.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | uint8 3 | ^16rCC -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/class/undefinedNil.st: -------------------------------------------------------------------------------- 1 | typecodes 2 | undefinedNil 3 | ^16rC0 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpConstants.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpConstants", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpDecodeTypeMapper.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineArrayActionTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineArrayActionTo: map 3 | map at: MpConstants array16 put: #readArray16. 4 | map at: MpConstants array32 put: #readArray32. 5 | 6 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineBinBytesActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineBinBytesActionTo: map 3 | map at: MpConstants bin8 put: #readBin8. 4 | map at: MpConstants bin16 put: #readBin16. 5 | map at: MpConstants bin32 put: #readBin32. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineCompoundsActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineCompoundsActionsTo: map 3 | self defineArrayActionTo: map. 4 | self defineMapActionTo: map. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineDoubleActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineDoubleActionTo: map 3 | map at: MpConstants double put: #readDouble -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineExtsActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for exts 2 | defineExtsActionsTo: map 3 | map at: MpConstants fixext1 put: #readFixext1. 4 | map at: MpConstants fixext2 put: #readFixext2. 5 | map at: MpConstants fixext4 put: #readFixext4. 6 | map at: MpConstants fixext8 put: #readFixext8. 7 | map at: MpConstants fixext16 put: #readFixext16. 8 | map at: MpConstants ext8 put: #readExt8. 9 | map at: MpConstants ext16 put: #readExt16. 10 | map at: MpConstants ext32 put: #readExt32. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineFalseActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineFalseActionTo: map 3 | map at: MpConstants boolFalse put: #readFalse -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineFloatActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineFloatActionTo: map 3 | map at: MpConstants float put: #readFloat -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineIntegerActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineIntegerActionTo: map 3 | map at: MpConstants int8 put: #readInt8. 4 | map at: MpConstants int16 put: #readInt16. 5 | map at: MpConstants int32 put: #readInt32. 6 | map at: MpConstants int64 put: #readInt64. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineMapActionTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineMapActionTo: map 3 | map at: MpConstants map16 put: #readMap16. 4 | map at: MpConstants map32 put: #readMap32. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineNilActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineNilActionTo: map 3 | map at: MpConstants undefinedNil put: #readNil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/definePrimitivesActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | definePrimitivesActionsTo: map 3 | self defineNilActionTo: map. 4 | self defineTrueActionTo: map. 5 | self defineFalseActionTo: map. 6 | self defineFloatActionTo: map. 7 | self defineDoubleActionTo: map. 8 | self defineUnsignedIntegerActionTo: map. 9 | self defineIntegerActionTo: map. 10 | self defineBinBytesActionTo: map. 11 | self defineStrBytesActionTo: map. 12 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineStrBytesActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineStrBytesActionTo: map 3 | map at: MpConstants str8 put: #readStr8. 4 | map at: MpConstants str16 put: #readStr16. 5 | map at: MpConstants str32 put: #readStr32. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineTrueActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineTrueActionTo: map 3 | map at: MpConstants boolTrue put: #readTrue -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/defineUnsignedIntegerActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineUnsignedIntegerActionTo: map 3 | map at: MpConstants uint8 put: #readUint8. 4 | map at: MpConstants uint16 put: #readUint16. 5 | map at: MpConstants uint32 put: #readUint32. 6 | map at: MpConstants uint64 put: #readUint64. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/class/on..st: -------------------------------------------------------------------------------- 1 | instance creation 2 | on: mpDecoder 3 | ^ self new decoder: mpDecoder; 4 | initActionMaps; 5 | yourself -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/bytesAsRaw.st: -------------------------------------------------------------------------------- 1 | decode customization 2 | bytesAsRaw 3 | "For older MP specification" 4 | | map | 5 | map := self actionMap. 6 | map at: MpConstants str8 put: #signalError. 7 | map at: MpConstants str16 put: #readRaw16. 8 | map at: MpConstants str32 put: #readRaw32. 9 | 10 | self isBytesAsString: false -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/bytesAsString.st: -------------------------------------------------------------------------------- 1 | decode customization 2 | bytesAsString 3 | | map | 4 | map := self actionMap. 5 | map at: MpConstants str8 put: #readString8. 6 | map at: MpConstants str16 put: #readString16. 7 | map at: MpConstants str32 put: #readString32. 8 | 9 | self isBytesAsString: true -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/decoder..st: -------------------------------------------------------------------------------- 1 | accessing 2 | decoder: anObject 3 | "Set the value of decoder" 4 | 5 | decoder := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/decoder.st: -------------------------------------------------------------------------------- 1 | accessing 2 | decoder 3 | "Answer the value of decoder" 4 | 5 | ^ decoder -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/isBytesAsString..st: -------------------------------------------------------------------------------- 1 | accessing 2 | isBytesAsString: aBoolean 3 | 4 | isBytesAsString := aBoolean == true -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/isBytesAsString.st: -------------------------------------------------------------------------------- 1 | decode customization 2 | isBytesAsString 3 | isBytesAsString ifNil: [isBytesAsString := false]. 4 | ^ isBytesAsString -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/instance/readObjectOf.ifNotApplied..st: -------------------------------------------------------------------------------- 1 | actions 2 | readObjectOf: typeCode ifNotApplied: aBlock 3 | | actionSelector | 4 | 5 | actionMap 6 | ifNotNil: [actionSelector := self actionMap at: typeCode ifAbsent: []. 7 | actionSelector ifNotNil: [^ self decoder perform: actionSelector]]. 8 | 9 | actionSelector := self defaultActionMap 10 | at: typeCode 11 | ifAbsent: [^ aBlock value]. 12 | ^ self decoder perform: actionSelector -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecodeTypeMapper.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpTypeMapper", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "decoder", 10 | "isBytesAsString" 11 | ], 12 | "name" : "MpDecodeTypeMapper", 13 | "type" : "normal" 14 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpDecoder.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/class/decode..st: -------------------------------------------------------------------------------- 1 | actions 2 | decode: byteArray 3 | ^self new decode: byteArray -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/class/decode.setting..st: -------------------------------------------------------------------------------- 1 | actions 2 | decode: byteArray setting: settingBlock 3 | ^self new decode: byteArray setting: settingBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/class/decodeFrom..st: -------------------------------------------------------------------------------- 1 | actions 2 | decodeFrom: aStream 3 | ^self new decodeFrom: aStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/class/decodeFrom.setting..st: -------------------------------------------------------------------------------- 1 | actions 2 | decodeFrom: aStream setting: settingBlock 3 | ^self new decodeFrom: aStream setting: settingBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/class/on..st: -------------------------------------------------------------------------------- 1 | actions 2 | on: aStream 3 | ^self new readStream: aStream "binary" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/class/onBytes..st: -------------------------------------------------------------------------------- 1 | actions 2 | onBytes: byteArray 3 | ^self on: (ReadStream on: byteArray) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/atEnd.st: -------------------------------------------------------------------------------- 1 | stream-like 2 | atEnd 3 | ^self readStream atEnd -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/buildTypeMapper..st: -------------------------------------------------------------------------------- 1 | building 2 | buildTypeMapper: aTypeMapper 3 | self settings formatVersion = 2008 ifTrue: [ 4 | aTypeMapper bytesAsRaw. 5 | self settings bytesAsString ifTrue: [aTypeMapper bytesAsString]. 6 | ]. 7 | ^ aTypeMapper -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/createArray..st: -------------------------------------------------------------------------------- 1 | factory 2 | createArray: size 3 | size = 0 ifTrue: [ ^#() ]. 4 | ^Array new: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/createDictionary..st: -------------------------------------------------------------------------------- 1 | factory 2 | createDictionary: size 3 | ^Dictionary new: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/createOrderedCollection..st: -------------------------------------------------------------------------------- 1 | factory 2 | createOrderedCollection: size 3 | ^OrderedCollection new: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/decode..st: -------------------------------------------------------------------------------- 1 | decoding 2 | decode: byteArray 3 | ^self decodeFrom: byteArray readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/decode.setting..st: -------------------------------------------------------------------------------- 1 | decoding 2 | decode: byteArray setting: settingBlock 3 | settingBlock value: self settings. 4 | ^self decodeFrom: byteArray readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/decode.st: -------------------------------------------------------------------------------- 1 | decoding 2 | decode 3 | self readStream atEnd ifTrue: [^self signalError: 'No data to read']. 4 | ^self read -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/decodeFrom..st: -------------------------------------------------------------------------------- 1 | decoding 2 | decodeFrom: aStream 3 | self readStream: aStream "binary". 4 | ^self decode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/decodeFrom.setting..st: -------------------------------------------------------------------------------- 1 | decoding 2 | decodeFrom: aStream setting: settingBlock 3 | settingBlock value: self settings. 4 | self readStream: aStream "binary". 5 | ^self decode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/next.st: -------------------------------------------------------------------------------- 1 | stream-like 2 | next 3 | ^self read -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/read.st: -------------------------------------------------------------------------------- 1 | reading 2 | read 3 | ^self readObject. 4 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readArray16.st: -------------------------------------------------------------------------------- 1 | reading 2 | readArray16 3 | | size | 4 | size := MpPortableUtil default readUint16From: self readStream. 5 | ^ self readArraySized: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readArray32.st: -------------------------------------------------------------------------------- 1 | reading 2 | readArray32 3 | | size | 4 | size := MpPortableUtil default readUint32From: self readStream. 5 | ^ self readArraySized: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readArraySized..st: -------------------------------------------------------------------------------- 1 | reading-helper 2 | readArraySized: size 3 | | array | 4 | array := self createArray: size. 5 | 1 to: size do: [:idx | 6 | array at: idx put: (self readObject) 7 | ]. 8 | ^array -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readBin16.st: -------------------------------------------------------------------------------- 1 | reading 2 | readBin16 3 | | size | 4 | size := MpPortableUtil default readUint16From: self readStream. 5 | ^self readStream next: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readBin32.st: -------------------------------------------------------------------------------- 1 | reading 2 | readBin32 3 | | size | 4 | size := MpPortableUtil default readUint32From: self readStream. 5 | ^self readStream next: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readBin8.st: -------------------------------------------------------------------------------- 1 | reading 2 | readBin8 3 | | size | 4 | size := self readStream next. 5 | ^(self readStream next: size) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readDouble.st: -------------------------------------------------------------------------------- 1 | reading 2 | readDouble 3 | "64 bit" 4 | ^MpPortableUtil default readDoubleFrom: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readExt16.st: -------------------------------------------------------------------------------- 1 | reading-ext 2 | readExt16 3 | | size type | 4 | size := MpPortableUtil default readUint16From: self readStream. 5 | type := self readStream next. 6 | ^self readExtSized: size as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readExt32.st: -------------------------------------------------------------------------------- 1 | reading-ext 2 | readExt32 3 | | size type | 4 | size := MpPortableUtil default readUint32From: self readStream. 5 | type := self readStream next. 6 | ^self readExtSized: size as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readExt8.st: -------------------------------------------------------------------------------- 1 | reading-ext 2 | readExt8 3 | | size type | 4 | size := self readStream next. 5 | type := self readStream next. 6 | ^self readExtSized: size as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readExtSized.as..st: -------------------------------------------------------------------------------- 1 | reading-ext 2 | readExtSized: size as: type 3 | type = MpConstants timestamp ifTrue: [ 4 | ^ self readTimestamp96: self readStream 5 | ]. 6 | ^MpExtValue typeCode: type data: (self readStream next: size) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFalse.st: -------------------------------------------------------------------------------- 1 | reading 2 | readFalse 3 | ^false -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixArray..st: -------------------------------------------------------------------------------- 1 | reading 2 | readFixArray: firstByte 3 | | size | 4 | size := (firstByte bitAnd: 2r1111). 5 | ^ self readArraySized: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixMap..st: -------------------------------------------------------------------------------- 1 | reading 2 | readFixMap: firstByte 3 | | size | 4 | size := (firstByte bitAnd: 2r1111). 5 | ^self readMapSized: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixRaw..st: -------------------------------------------------------------------------------- 1 | reading 2 | readFixRaw: firstByte 3 | | size | 4 | self typeMapper isBytesAsString ifTrue: [^self readFixString: firstByte]. 5 | size := (firstByte bitAnd: 2r11111). 6 | size = 0 ifTrue: [ ^ #[] ]. 7 | ^self readStream next: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixStr..st: -------------------------------------------------------------------------------- 1 | reading 2 | readFixStr: firstByte 3 | self settings formatVersion = 2008 ifTrue: [^self readFixRaw: firstByte]. 4 | ^self readFixString: firstByte -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixString..st: -------------------------------------------------------------------------------- 1 | reading-string 2 | readFixString: firstByte 3 | | size | 4 | size := (firstByte bitAnd: 2r11111). 5 | size = 0 ifTrue: [ ^ '' ]. 6 | ^MpPortableUtil default stringFromBytes: (self readStream next: size) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixedTimestamp..st: -------------------------------------------------------------------------------- 1 | reading-timestamp 2 | readFixedTimestamp: data 3 | data size = 4 ifTrue: [ ^self readTimestamp32: data readStream]. 4 | ^self readTimestamp64: data readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext.as..st: -------------------------------------------------------------------------------- 1 | reading-fixext 2 | readFixext: data as: type 3 | type = MpConstants timestamp ifTrue: [ 4 | ^ self readFixedTimestamp: data 5 | ]. 6 | 7 | ^MpFixextValue typeCode: type data: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext1.st: -------------------------------------------------------------------------------- 1 | reading-fixext 2 | readFixext1 3 | | data type | 4 | type := self readStream next. 5 | data := ByteArray with: self readStream next. 6 | ^self readFixext: data as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext16.st: -------------------------------------------------------------------------------- 1 | reading-fixext 2 | readFixext16 3 | | data type | 4 | type := self readStream next. 5 | data := self readStream next: 16. 6 | ^self readFixext: data as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext2.st: -------------------------------------------------------------------------------- 1 | reading-fixext 2 | readFixext2 3 | | data type | 4 | type := self readStream next. 5 | data := self readStream next: 2. 6 | ^self readFixext: data as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext4.st: -------------------------------------------------------------------------------- 1 | reading-fixext 2 | readFixext4 3 | | data type | 4 | type := self readStream next. 5 | data := self readStream next: 4. 6 | ^self readFixext: data as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext8.st: -------------------------------------------------------------------------------- 1 | reading-fixext 2 | readFixext8 3 | | data type | 4 | type := self readStream next. 5 | data := self readStream next: 8. 6 | ^self readFixext: data as: type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readFloat.st: -------------------------------------------------------------------------------- 1 | reading 2 | readFloat 3 | "32 bit" 4 | ^MpPortableUtil default readFloatFrom: self readStream 5 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readInt16.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readInt16 3 | ^ MpPortableUtil default readInt16From: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readInt32.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readInt32 3 | ^ MpPortableUtil default readInt32From: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readInt64.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readInt64 3 | ^ MpPortableUtil default readInt64From: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readInt8.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readInt8 3 | | val | 4 | val := self readStream next. 5 | val >= 128 ifTrue: [^(256 - val) negated]. 6 | ^val -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readMap16.st: -------------------------------------------------------------------------------- 1 | reading 2 | readMap16 3 | | size | 4 | size := MpPortableUtil default readUint16From: self readStream. 5 | ^ self readMapSized: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readMap32.st: -------------------------------------------------------------------------------- 1 | reading 2 | readMap32 3 | | size | 4 | size := MpPortableUtil default readUint32From: self readStream. 5 | ^ self readMapSized: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readMapSized..st: -------------------------------------------------------------------------------- 1 | reading-helper 2 | readMapSized: size 3 | | dic | 4 | dic := self createDictionary: size. 5 | size timesRepeat: [ 6 | dic at: self readObject put: self readObject 7 | ]. 8 | ^dic -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readNegativeFixNum..st: -------------------------------------------------------------------------------- 1 | reading 2 | readNegativeFixNum: firstByte 3 | | val | 4 | val := (firstByte bitAnd: 2r11111). 5 | ^ val - 32 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readNil.st: -------------------------------------------------------------------------------- 1 | reading 2 | readNil 3 | ^nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readObject.st: -------------------------------------------------------------------------------- 1 | dispatching 2 | readObject 3 | | type | 4 | type := self readType. 5 | ^ self readObjectOf: type 6 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readObjectOf..st: -------------------------------------------------------------------------------- 1 | dispatching 2 | readObjectOf: type 3 | ^ self readObjectOf: type ifNotApplied: [self signalError] 4 | 5 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readPositiveFixNum..st: -------------------------------------------------------------------------------- 1 | reading 2 | readPositiveFixNum: firstByte 3 | "0 - 127" 4 | ^ firstByte -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readRaw16.st: -------------------------------------------------------------------------------- 1 | reading 2 | readRaw16 3 | "Obsolete" 4 | | size | 5 | size := MpPortableUtil default readUint16From: self readStream. 6 | ^self readStream next: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readRaw32.st: -------------------------------------------------------------------------------- 1 | reading 2 | readRaw32 3 | "Obsolete" 4 | | size | 5 | size := MpPortableUtil default readUint32From: self readStream. 6 | ^self readStream next: size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readStr16.st: -------------------------------------------------------------------------------- 1 | reading 2 | readStr16 3 | ^self readString16 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readStr32.st: -------------------------------------------------------------------------------- 1 | reading 2 | readStr32 3 | ^self readString32 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readStr8.st: -------------------------------------------------------------------------------- 1 | reading 2 | readStr8 3 | ^self readString8 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readStream..st: -------------------------------------------------------------------------------- 1 | accessing 2 | readStream: anObject 3 | "Set the value of readStream" 4 | 5 | readStream := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readStream.st: -------------------------------------------------------------------------------- 1 | accessing 2 | readStream 3 | "Answer the value of readStream" 4 | 5 | ^ readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readString16.st: -------------------------------------------------------------------------------- 1 | reading-string 2 | readString16 3 | | size | 4 | size := MpPortableUtil default readUint16From: self readStream. 5 | ^MpPortableUtil default stringFromBytes: (self readStream next: size) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readString32.st: -------------------------------------------------------------------------------- 1 | reading-string 2 | readString32 3 | | size | 4 | size := MpPortableUtil default readUint32From: self readStream. 5 | ^MpPortableUtil default stringFromBytes: (self readStream next: size) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readString8.st: -------------------------------------------------------------------------------- 1 | reading-string 2 | readString8 3 | | size | 4 | size := self readStream next. 5 | ^MpPortableUtil default stringFromBytes: (self readStream next: size) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readTimestamp32..st: -------------------------------------------------------------------------------- 1 | reading-timestamp 2 | readTimestamp32: aStream 3 | | seconds | 4 | seconds := MpPortableUtil default readInt32From: aStream. 5 | ^MpPortableUtil default timestampFromSeconds: seconds nanos: 0 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readTimestamp64..st: -------------------------------------------------------------------------------- 1 | reading-timestamp 2 | readTimestamp64: aStream 3 | | nanosAndSeconds nanos seconds | 4 | nanosAndSeconds := MpPortableUtil default readUint64From: aStream. 5 | nanos := nanosAndSeconds >> 34. 6 | seconds := nanosAndSeconds bitAnd: 16r00000003ffffffff. 7 | ^MpPortableUtil default timestampFromSeconds: seconds nanos: nanos -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readTimestamp96..st: -------------------------------------------------------------------------------- 1 | reading-timestamp 2 | readTimestamp96: aStream 3 | | nanos seconds | 4 | nanos := MpPortableUtil default readUint32From: aStream. 5 | seconds := MpPortableUtil default readInt64From: aStream. 6 | ^MpPortableUtil default timestampFromSeconds: seconds nanos: nanos -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readTrue.st: -------------------------------------------------------------------------------- 1 | reading 2 | readTrue 3 | ^true -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readType.st: -------------------------------------------------------------------------------- 1 | reading-helper 2 | readType 3 | ^self readStream next -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readUint16.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readUint16 3 | ^ MpPortableUtil default readUint16From: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readUint32.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readUint32 3 | ^ MpPortableUtil default readUint32From: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readUint64.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readUint64 3 | ^ MpPortableUtil default readUint64From: self readStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/readUint8.st: -------------------------------------------------------------------------------- 1 | reading-integer 2 | readUint8 3 | ^ self readStream next -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/settings.st: -------------------------------------------------------------------------------- 1 | accessing 2 | settings 3 | ^settings ifNil: [settings := self settingsClass new] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/settingsClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | settingsClass 3 | ^MpSettings -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/signalError..st: -------------------------------------------------------------------------------- 1 | signaling error 2 | signalError: message 3 | ^MpPortableUtil default signalException: (MpError decode messageText: message) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/signalError.st: -------------------------------------------------------------------------------- 1 | signaling error 2 | signalError 3 | self signalError: 'Cannot decode' -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/typeMapper.st: -------------------------------------------------------------------------------- 1 | accessing 2 | typeMapper 3 | ^ typeMapper 4 | ifNil: [typeMapper := self typeMapperClass on: self. 5 | self buildTypeMapper: typeMapper] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/instance/typeMapperClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | typeMapperClass 3 | ^MpDecodeTypeMapper -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpDecoder.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "readStream", 10 | "typeMapper", 11 | "settings" 12 | ], 13 | "name" : "MpDecoder", 14 | "type" : "normal" 15 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpEncodeTypeMapper.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineArrayActionTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineArrayActionTo: map 3 | map at: Array put: #writeArray:. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineBinBytesActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineBinBytesActionTo: map 3 | map at: ByteArray put: #writeBinBytes: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineCompoundsActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineCompoundsActionsTo: map 3 | self defineArrayActionTo: map. 4 | self defineMapActionTo: map. 5 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineDoubleActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineDoubleActionTo: map 3 | "Some dialect does not support Double" 4 | "map at: Double put: #writeDouble:" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineExtsActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for exts 2 | defineExtsActionsTo: map 3 | map at: MpExtValue put: #writeExt:. 4 | map at: MpFixextValue put: #writeFixext:. 5 | 6 | self defineTimestampActionTo: map -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineFalseActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineFalseActionTo: map 3 | map at: False put: #writeFalse: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineFloatActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineFloatActionTo: map 3 | "Suppose 32 bit float - Some dialect does not support it" 4 | "map at: Float put: #writeFloat:" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineIntegerActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineIntegerActionTo: map 3 | Integer allSubclasses do: [:each | 4 | map at: each put: #writeInteger: 5 | ] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineMapActionTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineMapActionTo: map 3 | map at: Dictionary put: #writeMap:. 4 | "map at: IdentityDictionary put: #writeDictionary:" 5 | 6 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineNilActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineNilActionTo: map 3 | map at: UndefinedObject put: #writeNil: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/definePrimitivesActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | definePrimitivesActionsTo: map 3 | self defineNilActionTo: map. 4 | self defineTrueActionTo: map. 5 | self defineFalseActionTo: map. 6 | self defineIntegerActionTo: map. 7 | self defineFloatActionTo: map. 8 | self defineDoubleActionTo: map. 9 | self defineBinBytesActionTo: map. 10 | self defineStrBytesActionTo: map. 11 | 12 | self defineSymbolActionTo: map. 13 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineStrBytesActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineStrBytesActionTo: map 3 | map at: String put: #writeStrBytes: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineSymbolActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineSymbolActionTo: map 3 | map at: ByteSymbol put: #writeString:. 4 | map at: WideSymbol put: #writeWideString:. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineTimestampActionTo..st: -------------------------------------------------------------------------------- 1 | actions for exts 2 | defineTimestampActionTo: map 3 | map at: DateAndTime put: #writeTimestamp:. 4 | map at: TimeStamp put: #writeTimestamp: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/defineTrueActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineTrueActionTo: map 3 | map at: True put: #writeTrue: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/class/on..st: -------------------------------------------------------------------------------- 1 | instance creation 2 | on: mpEncoder 3 | ^ self new encoder: mpEncoder; 4 | initActionMaps; 5 | yourself -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/instance/bytesAsRaw.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | bytesAsRaw 3 | "For older MP specification" 4 | self actionMap at: ByteArray put: #writeRawBytes:. 5 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/instance/encoder..st: -------------------------------------------------------------------------------- 1 | accessing 2 | encoder: anObject 3 | "Set the value of encoder" 4 | 5 | encoder := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/instance/encoder.st: -------------------------------------------------------------------------------- 1 | accessing 2 | encoder 3 | "Answer the value of encoder" 4 | 5 | ^ encoder -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/instance/stringAsBytes.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | stringAsBytes 3 | self actionMap at: String put: #writeString: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/instance/stringAsError.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | stringAsError 3 | "For older MP specification" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncodeTypeMapper.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpTypeMapper", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "encoder" 10 | ], 11 | "name" : "MpEncodeTypeMapper", 12 | "type" : "normal" 13 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpEncoder.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/class/encode..st: -------------------------------------------------------------------------------- 1 | actions 2 | encode: anObject 3 | ^self new encode: anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/class/encode.on..st: -------------------------------------------------------------------------------- 1 | actions 2 | encode: anObject on: aStream 3 | ^self new encode: anObject on: aStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/class/encode.on.setting..st: -------------------------------------------------------------------------------- 1 | actions 2 | encode: anObject on: aStream setting: aBlock 3 | ^self new encode: anObject on: aStream setting: aBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/class/encode.setting..st: -------------------------------------------------------------------------------- 1 | actions 2 | encode: anObject setting: settingBlock 3 | ^self new encode: anObject setting: settingBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/class/on..st: -------------------------------------------------------------------------------- 1 | actions 2 | on: aStream 3 | ^self new writeStream: aStream; yourself -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/class/onBytes..st: -------------------------------------------------------------------------------- 1 | actions 2 | onBytes: byteArray 3 | ^self on: (WriteStream on: byteArray). -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/buildTypeMapper..st: -------------------------------------------------------------------------------- 1 | building 2 | buildTypeMapper: aTypeMapper 3 | self settings formatVersion = 2008 ifTrue: [ 4 | self buildTypeMapperFor2008: aTypeMapper. 5 | ] ifFalse: [ 6 | self buildTypeMapperFor2013: aTypeMapper. 7 | ]. 8 | 9 | ^aTypeMapper 10 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/buildTypeMapperFor2008..st: -------------------------------------------------------------------------------- 1 | building 2 | buildTypeMapperFor2008: aTypeMapper 3 | aTypeMapper bytesAsRaw. 4 | self settings stringAsBytes 5 | ifTrue: [aTypeMapper stringAsBytes] 6 | ifFalse: [aTypeMapper stringAsError] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/buildTypeMapperFor2013..st: -------------------------------------------------------------------------------- 1 | building 2 | buildTypeMapperFor2013: aTypeMapper 3 | self settings symbolAsString ifFalse: [aTypeMapper symbolAsError] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/contents.st: -------------------------------------------------------------------------------- 1 | accessing 2 | contents 3 | ^self writeStream contents -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/createWriteStream.st: -------------------------------------------------------------------------------- 1 | factory 2 | createWriteStream 3 | self settings fastBulkWrite ifTrue: [ 4 | ^MpMemoryWriteStream chunkSized: self settings defaultStreamSize. 5 | ]. 6 | 7 | ^WriteStream on: (ByteArray new: self settings defaultStreamSize). 8 | 9 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/encode..st: -------------------------------------------------------------------------------- 1 | encoding 2 | encode: anObject 3 | ^self encode: anObject on: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/encode.on..st: -------------------------------------------------------------------------------- 1 | encoding 2 | encode: anObject on: aStream 3 | self write: anObject on: aStream. 4 | ^self contents. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/encode.on.setting..st: -------------------------------------------------------------------------------- 1 | encoding 2 | encode: anObject on: aStream setting: aBlock 3 | aBlock value: self settings. 4 | self write: anObject on: aStream. 5 | ^self contents. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/encode.setting..st: -------------------------------------------------------------------------------- 1 | encoding 2 | encode: anObject setting: aBlock 3 | ^self encode: anObject on: self writeStream setting: aBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/nextPut..st: -------------------------------------------------------------------------------- 1 | stream-like 2 | nextPut: anObject 3 | self writeObject: anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/nextPutAll..st: -------------------------------------------------------------------------------- 1 | stream-like 2 | nextPutAll: aCollection 3 | aCollection do: [:each | self nextPut: each] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/settings.st: -------------------------------------------------------------------------------- 1 | accessing 2 | settings 3 | ^settings ifNil: [settings := self settingsClass new] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/settingsClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | settingsClass 3 | ^MpSettings -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/signalError..st: -------------------------------------------------------------------------------- 1 | signaling error 2 | signalError: message 3 | ^MpPortableUtil default signalException: (MpError encode messageText: message) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/signalError.st: -------------------------------------------------------------------------------- 1 | signaling error 2 | signalError 3 | self signalError: 'Cannot encode' -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/typeMapper.st: -------------------------------------------------------------------------------- 1 | accessing 2 | typeMapper 3 | ^ typeMapper 4 | ifNil: [typeMapper := self typeMapperClass on: self. 5 | self buildTypeMapper: typeMapper] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/typeMapperClass.st: -------------------------------------------------------------------------------- 1 | accessing 2 | typeMapperClass 3 | ^MpPortableUtil default encodeTypeMapperClass -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/write.on..st: -------------------------------------------------------------------------------- 1 | encoding 2 | write: anObject on: aStream 3 | self writeStream: aStream "binary". 4 | self writeObject: anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeArray..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeArray: array 3 | | size | 4 | size := array size. 5 | self writeArraySize: size. 6 | array do: [:each | self writeObject: each]. 7 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeArraySize..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeArraySize: size 3 | size < 16r10 ifTrue: [^ self writeStream nextPut: (2r10010000 bitOr: size)]. 4 | size < 16r10000 ifTrue: [ 5 | self writeStream nextPut: MpConstants array16. 6 | ^MpPortableUtil default writeUint16: size to: self writeStream 7 | ]. 8 | size < 16r100000000 ifTrue: [ 9 | self writeStream nextPut: MpConstants array32. 10 | ^MpPortableUtil default writeUint32: size to: self writeStream 11 | ]. 12 | 13 | self signalError -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeBinBytes..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeBinBytes: bytes 3 | | size | 4 | size := bytes size. 5 | self writeBinBytesSize: size. 6 | self writeStream nextPutAll: bytes -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeBinBytesSize..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeBinBytesSize: size 3 | size < 16r10 ifTrue: [ 4 | self writeStream nextPut: MpConstants bin8. 5 | ^ self writeStream nextPut: size]. 6 | size < 16r10000 ifTrue: [ 7 | self writeStream nextPut: MpConstants bin16. 8 | ^MpPortableUtil default writeUint16: size to: self writeStream 9 | ]. 10 | size < 16r100000000 ifTrue: [ 11 | self writeStream nextPut: MpConstants bin32. 12 | ^MpPortableUtil default writeUint32: size to: self writeStream 13 | ]. 14 | 15 | self signalError -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeDouble..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeDouble: aFloat 3 | self writeStream nextPut: MpConstants double. 4 | MpPortableUtil default writeDouble: aFloat to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeExt..st: -------------------------------------------------------------------------------- 1 | writing-ext 2 | writeExt: mpExtValue 3 | ^self writeExt: mpExtValue data as: mpExtValue typeCode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeExt.as..st: -------------------------------------------------------------------------------- 1 | writing-ext 2 | writeExt: data as: type 3 | | sz | 4 | sz := data size. 5 | sz < 256 ifTrue: [^self writeExt8: data as: type]. 6 | sz < 65536 ifTrue: [^self writeExt16: data as: type]. 7 | sz < 4294967296 ifTrue: [^self writeExt32: data as: type]. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeExt16.as..st: -------------------------------------------------------------------------------- 1 | writing-ext 2 | writeExt16: data as: type 3 | self writeStream nextPut: MpConstants ext16. 4 | MpPortableUtil default writeUint16: data size to: self writeStream. 5 | self writeStream 6 | nextPut: type; 7 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeExt32.as..st: -------------------------------------------------------------------------------- 1 | writing-ext 2 | writeExt32: data as: type 3 | self writeStream nextPut: MpConstants ext32. 4 | MpPortableUtil default writeUint32: data size to: self writeStream. 5 | self writeStream 6 | nextPut: type; 7 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeExt8.as..st: -------------------------------------------------------------------------------- 1 | writing-ext 2 | writeExt8: data as: type 3 | self writeStream nextPut: MpConstants ext8; 4 | nextPut: data size; 5 | nextPut: type; 6 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFalse..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeFalse: ignore 3 | self writeStream nextPut: MpConstants boolFalse -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext: mpFixextValue 3 | ^self writeFixext: mpFixextValue data as: mpFixextValue typeCode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext.as..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext: data as: type 3 | | sz | 4 | sz := data size. 5 | sz = 1 ifTrue: [^self writeFixext1: data as: type]. 6 | sz = 2 ifTrue: [^self writeFixext2: data as: type]. 7 | sz = 4 ifTrue: [^self writeFixext4: data as: type]. 8 | sz = 8 ifTrue: [^self writeFixext8: data as: type]. 9 | sz = 16 ifTrue: [^self writeFixext16: data as: type]. 10 | 11 | self signalError -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext1.as..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext1: data as: type 3 | self writeStream nextPut: MpConstants fixext1; 4 | nextPut: type; 5 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext16.as..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext16: data as: type 3 | self writeStream nextPut: MpConstants fixext16; 4 | nextPut: type; 5 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext2.as..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext2: data as: type 3 | self writeStream nextPut: MpConstants fixext2; 4 | nextPut: type; 5 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext4.as..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext4: data as: type 3 | self writeStream nextPut: MpConstants fixext4; 4 | nextPut: type; 5 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext8.as..st: -------------------------------------------------------------------------------- 1 | writing-fixext 2 | writeFixext8: data as: type 3 | self writeStream nextPut: MpConstants fixext8; 4 | nextPut: type; 5 | nextPutAll: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeFloat..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeFloat: aFloat 3 | self writeStream nextPut: MpConstants float. 4 | MpPortableUtil default writeFloat: aFloat to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeInt16..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeInt16: value 3 | self writeStream nextPut: MpConstants int16. 4 | MpPortableUtil default writeInt16: value to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeInt32..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeInt32: value 3 | self writeStream nextPut: MpConstants int32. 4 | MpPortableUtil default writeInt32: value to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeInt64..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeInt64: value 3 | self writeStream nextPut: MpConstants int64. 4 | MpPortableUtil default writeInt64: value to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeInt8..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeInt8: value 3 | | val | 4 | self writeStream nextPut: MpConstants int8. 5 | val := value < 0 ifTrue: [256 + value] ifFalse: [value]. 6 | self writeStream nextPut: val -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeMap..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeMap: aDictionary 3 | | size | 4 | size := aDictionary size. 5 | self writeMapSize: size. 6 | aDictionary keysAndValuesDo: [:key :value | self writeObject: key; writeObject: value]. -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeMapSize..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeMapSize: size 3 | size < 16r10 ifTrue: [^ self writeStream nextPut: (2r10000000 bitOr: size)]. 4 | size < 16r10000 ifTrue: [ 5 | self writeStream nextPut: MpConstants map16. 6 | ^MpPortableUtil default writeUint16: size to: self writeStream 7 | ]. 8 | size < 16r100000000 ifTrue: [ 9 | self writeStream nextPut: MpConstants map32. 10 | ^MpPortableUtil default writeUint32: size to: self writeStream 11 | ]. 12 | 13 | self signalError -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeNegativeFixNum..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeNegativeFixNum: number 3 | "-32 to -1" 4 | | val | 5 | val := 256 + number. 6 | self writeStream nextPut: val -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeNil..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeNil: ignore 3 | self writeStream nextPut: MpConstants undefinedNil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeObject..st: -------------------------------------------------------------------------------- 1 | dispatching 2 | writeObject: anObject 3 | ^self 4 | writeObject: anObject 5 | ifNotApplied: [self signalError] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeObject.ifNotApplied..st: -------------------------------------------------------------------------------- 1 | dispatching 2 | writeObject: anObject ifNotApplied: aBlock 3 | 4 | ^self typeMapper writeObject: anObject ifNotApplied: aBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writePositiveFixNum..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writePositiveFixNum: number 3 | 4 | self writeStream nextPut: number 5 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeRawBytes..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeRawBytes: bytes 3 | "Obsolete" 4 | self writeStrBytes: bytes -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeStrBytes..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeStrBytes: bytes 3 | | size | 4 | size := bytes size. 5 | self writeStrBytesSize: size. 6 | self writeStream nextPutAll: bytes -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeStrBytesSize..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeStrBytesSize: size 3 | size < 16r10 ifTrue: [^ self writeStream nextPut: (2r10100000 bitOr: size)]. 4 | size < 16r10000 ifTrue: [ 5 | self writeStream nextPut: MpConstants str16. 6 | ^MpPortableUtil default writeUint16: size to: self writeStream 7 | ]. 8 | size < 16r100000000 ifTrue: [ 9 | self writeStream nextPut: MpConstants str32. 10 | ^MpPortableUtil default writeUint32: size to: self writeStream 11 | ]. 12 | 13 | self signalError -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeStream..st: -------------------------------------------------------------------------------- 1 | accessing 2 | writeStream: anObject 3 | "Set the value of writeStream" 4 | 5 | writeStream := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeStream.st: -------------------------------------------------------------------------------- 1 | accessing 2 | writeStream 3 | writeStream isNil 4 | ifTrue: [writeStream := self createWriteStream]. 5 | ^ writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeString..st: -------------------------------------------------------------------------------- 1 | writing-string 2 | writeString: aString 3 | self writeStrBytes: (MpPortableUtil default bytesFromString: aString) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeTimestamp32..st: -------------------------------------------------------------------------------- 1 | writing-timestamp 2 | writeTimestamp32: seconds 3 | | strm | 4 | strm := self writeStream. 5 | strm nextPut: MpConstants fixext4; nextPut: MpConstants timestamp. 6 | MpPortableUtil default writeUint32: seconds to: strm. 7 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeTimestamp64..st: -------------------------------------------------------------------------------- 1 | writing-timestamp 2 | writeTimestamp64: nanosAndSeconds 3 | | strm | 4 | strm := self writeStream. 5 | strm nextPut: MpConstants fixext8; nextPut: MpConstants timestamp. 6 | MpPortableUtil default writeUint64: nanosAndSeconds to: strm. 7 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeTimestamp96.nanos..st: -------------------------------------------------------------------------------- 1 | writing-timestamp 2 | writeTimestamp96: seconds nanos: nanos 3 | | strm | 4 | strm := self writeStream. 5 | strm nextPut: MpConstants ext8; nextPut: 12; nextPut: MpConstants timestamp. 6 | MpPortableUtil default writeUint32: nanos to: strm. 7 | MpPortableUtil default writeInt64: seconds to: strm. 8 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeTrue..st: -------------------------------------------------------------------------------- 1 | writing 2 | writeTrue: ignore 3 | self writeStream nextPut: MpConstants boolTrue -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeUint16..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeUint16: value 3 | self writeStream nextPut: MpConstants uint16. 4 | MpPortableUtil default writeUint16: value to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeUint32..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeUint32: value 3 | self writeStream nextPut: MpConstants uint32. 4 | MpPortableUtil default writeUint32: value to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeUint64..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeUint64: value 3 | self writeStream nextPut: MpConstants uint64. 4 | MpPortableUtil default writeUint64: value to: self writeStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeUint8..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeUint8: value 3 | self writeStream nextPut: MpConstants uint8. 4 | self writeStream nextPut: value -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeUnknown.withHandler..st: -------------------------------------------------------------------------------- 1 | writing-helper 2 | writeUnknown: unknown withHandler: aBlock 3 | | mode | 4 | mode := self settings encodeMode. 5 | mode == #strict ifTrue: [^aBlock value]. 6 | mode == #unknownAsNil ifTrue: [^self writeNil: unknown]. 7 | mode == #loose ifTrue: [^self writeObject: unknown asMpConverted]. 8 | 9 | "If non supported mode, we just use handler" 10 | ^aBlock value 11 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/instance/writeWideString..st: -------------------------------------------------------------------------------- 1 | writing-string 2 | writeWideString: aString 3 | self writeStrBytes: (MpPortableUtil default bytesFromString: aString) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpEncoder.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "writeStream", 10 | "typeMapper", 11 | "settings" 12 | ], 13 | "name" : "MpEncoder", 14 | "type" : "normal" 15 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpError.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpError.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpError.class/class/decode.st: -------------------------------------------------------------------------------- 1 | instance creation 2 | decode 3 | ^self new type: #decode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpError.class/class/encode.st: -------------------------------------------------------------------------------- 1 | instance creation 2 | encode 3 | ^self new type: #encode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpError.class/instance/type..st: -------------------------------------------------------------------------------- 1 | accessing 2 | type: anObject 3 | "Set the value of type" 4 | 5 | type := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpError.class/instance/type.st: -------------------------------------------------------------------------------- 1 | accessing 2 | type 3 | "Answer the value of type" 4 | 5 | ^ type -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpError.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Error", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "type" 10 | ], 11 | "name" : "MpError", 12 | "type" : "normal" 13 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpExtValue.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/class/typeCode.data..st: -------------------------------------------------------------------------------- 1 | instance creation 2 | typeCode: anInteger data: data 3 | ^ self new typeCode: anInteger; 4 | data: data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/data..st: -------------------------------------------------------------------------------- 1 | accessing 2 | data: anObject 3 | 4 | data := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/data.st: -------------------------------------------------------------------------------- 1 | accessing 2 | data 3 | 4 | ^ data -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/printDescriptionOn..st: -------------------------------------------------------------------------------- 1 | printing 2 | printDescriptionOn: aStream 3 | self typeCode printOn: aStream. 4 | aStream space. 5 | aStream nextPutAll: 'data: '. 6 | self data printOn: aStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/printOn..st: -------------------------------------------------------------------------------- 1 | printing 2 | printOn: aStream 3 | aStream nextPutAll: 'Ext: '. 4 | self printDescriptionOn: aStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/size.st: -------------------------------------------------------------------------------- 1 | accessing 2 | size 3 | ^self data size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/typeCode..st: -------------------------------------------------------------------------------- 1 | accessing 2 | typeCode: anObject 3 | 4 | typeCode := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/instance/typeCode.st: -------------------------------------------------------------------------------- 1 | accessing 2 | typeCode 3 | 4 | ^ typeCode -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpExtValue.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "typeCode", 10 | "data" 11 | ], 12 | "name" : "MpExtValue", 13 | "type" : "normal" 14 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpFixextValue.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpFixextValue.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpFixextValue.class/instance/printOn..st: -------------------------------------------------------------------------------- 1 | printing 2 | printOn: aStream 3 | aStream nextPutAll: 'FixExt('. 4 | aStream nextPutAll: self size printString. 5 | aStream nextPutAll: '): '. 6 | self printDescriptionOn: aStream -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpFixextValue.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpExtValue", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpFixextValue", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpMemoryWriteStream.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/class/chunkSized..st: -------------------------------------------------------------------------------- 1 | instance creation 2 | chunkSized: chunkSize 3 | 4 | ^(self basicNew) 5 | chunkSize: chunkSize; 6 | initialize; 7 | yourself -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/class/new.st: -------------------------------------------------------------------------------- 1 | instance creation 2 | new 3 | 4 | ^super new initialize -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/chunkPosition..st: -------------------------------------------------------------------------------- 1 | accessing 2 | chunkPosition: anObject 3 | 4 | ^chunkPosition := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/chunkPosition.st: -------------------------------------------------------------------------------- 1 | accessing 2 | chunkPosition 3 | 4 | ^chunkPosition -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/chunkSize..st: -------------------------------------------------------------------------------- 1 | accessing 2 | chunkSize: anObject 3 | 4 | chunkSize := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/chunkSize.st: -------------------------------------------------------------------------------- 1 | accessing 2 | chunkSize 3 | 4 | ^chunkSize ifNil: [chunkSize := 1024] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/chunks..st: -------------------------------------------------------------------------------- 1 | accessing 2 | chunks: anObject 3 | 4 | chunks := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/chunks.st: -------------------------------------------------------------------------------- 1 | accessing 2 | chunks 3 | 4 | ^chunks -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/contents.st: -------------------------------------------------------------------------------- 1 | actions 2 | contents 3 | 4 | ^self asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/currentChunk..st: -------------------------------------------------------------------------------- 1 | accessing 2 | currentChunk: anObject 3 | 4 | ^currentChunk := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/currentChunk.st: -------------------------------------------------------------------------------- 1 | accessing 2 | currentChunk 3 | 4 | ^currentChunk -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/initialize.st: -------------------------------------------------------------------------------- 1 | initialize-release 2 | initialize 3 | 4 | chunks := OrderedCollection new. 5 | self makeSpace -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/lastSize..st: -------------------------------------------------------------------------------- 1 | accessing 2 | lastSize: anObject 3 | 4 | lastSize := anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/lastSize.st: -------------------------------------------------------------------------------- 1 | accessing 2 | lastSize 3 | 4 | ^lastSize -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/makeSpace.st: -------------------------------------------------------------------------------- 1 | private 2 | makeSpace 3 | 4 | self chunks add: self prepareCurrentChunk. 5 | self chunkPosition: 0. 6 | self lastSize: 0 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/moveToNext.st: -------------------------------------------------------------------------------- 1 | private 2 | moveToNext 3 | 4 | | curChunk | 5 | self chunkPosition: 0. 6 | curChunk := self currentChunk. 7 | (curChunk isNil or: [curChunk == self chunks last]) 8 | ifTrue: [self makeSpace] 9 | ifFalse: 10 | [1 11 | to: self chunks size 12 | do: 13 | [:idx | 14 | (self chunks at: idx) == curChunk 15 | ifTrue: 16 | [self currentChunk: (self chunks at: idx + 1). 17 | ^self]]] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/nextPut..st: -------------------------------------------------------------------------------- 1 | actions 2 | nextPut: integer 3 | 4 | self chunkPosition >= self chunkSize ifTrue: [self moveToNext]. 5 | self chunkPosition: self chunkPosition + 1. 6 | self currentChunk 7 | at: self chunkPosition 8 | put: integer -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/nextPutAll..st: -------------------------------------------------------------------------------- 1 | actions 2 | nextPutAll: bytes 3 | 4 | self 5 | putBytes: bytes 6 | sized: bytes size -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/position.st: -------------------------------------------------------------------------------- 1 | actions 2 | position 3 | 4 | | idx size coll | 5 | self currentChunk isNil ifTrue: [^0]. 6 | idx := 1. 7 | size := 0. 8 | [(coll := self chunks at: idx) == self currentChunk] 9 | whileFalse: 10 | [idx := idx + 1. 11 | size := size + coll size]. 12 | ^size + self chunkPosition -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/prepareCurrentChunk.st: -------------------------------------------------------------------------------- 1 | private 2 | prepareCurrentChunk 3 | 4 | ^self currentChunk: (ByteArray new: self chunkSize) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/instance/size.st: -------------------------------------------------------------------------------- 1 | actions 2 | size 3 | 4 | | size count | 5 | self currentChunk isNil ifTrue: [^0]. 6 | size := 0. 7 | count := self chunks size. 8 | 1 9 | to: count - 1 10 | do: [:idx | size := size + (self chunks at: idx) size]. 11 | self currentChunk == (self chunks at: count) 12 | ifTrue: 13 | [self lastSize < self chunkPosition 14 | ifTrue: [self lastSize: self chunkPosition]]. 15 | ^size + self lastSize -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMemoryWriteStream.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "chunks", 10 | "currentChunk", 11 | "chunkPosition", 12 | "chunkSize", 13 | "lastSize" 14 | ], 15 | "name" : "MpMemoryWriteStream", 16 | "type" : "normal" 17 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMessagePack.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpMessagePack.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMessagePack.class/class/pack..st: -------------------------------------------------------------------------------- 1 | utilities 2 | pack: anObject 3 | ^ MpEncoder encode: anObject -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMessagePack.class/class/packUnpack..st: -------------------------------------------------------------------------------- 1 | utilities 2 | packUnpack: anObject 3 | ^self unpack: (self pack: anObject) -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMessagePack.class/class/unpack..st: -------------------------------------------------------------------------------- 1 | utilities 2 | unpack: aByteArray 3 | ^ MpDecoder decode: aByteArray -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpMessagePack.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpMessagePack", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpPortableUtil.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/class/default.st: -------------------------------------------------------------------------------- 1 | instance creation 2 | default 3 | ^Default ifNil: [Default := self dialectSpecificClass new] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/class/detectDialogSpecificClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | detectDialogSpecificClass 3 | "Try to detect most specific subclass for this platform" 4 | ^ self allSubclasses detect: [ :eachSub | eachSub subclasses isEmpty ] ifNone: [ self subclasses at: 1 ] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/class/dialectSpecificClass..st: -------------------------------------------------------------------------------- 1 | factory 2 | dialectSpecificClass: aClass 3 | DialectSpecificClass := aClass -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/class/dialectSpecificClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | dialectSpecificClass 3 | ^DialectSpecificClass ifNil: [DialectSpecificClass := self detectDialogSpecificClass] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/class/initialize.st: -------------------------------------------------------------------------------- 1 | class initialization 2 | initialize 3 | Default := nil. 4 | DialectSpecificClass := nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/bytesFromString..st: -------------------------------------------------------------------------------- 1 | actions 2 | bytesFromString: aString 3 | ^aString asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/collectionEquals.with..st: -------------------------------------------------------------------------------- 1 | testing 2 | collectionEquals: aCollection with: otherCollection 3 | "For testing" 4 | ^ aCollection = otherCollection -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/encodeTypeMapperClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | encodeTypeMapperClass 3 | ^MpEncodeTypeMapper -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/newCollection.sized.withAll..st: -------------------------------------------------------------------------------- 1 | factory 2 | newCollection: aCollectionClass sized: size withAll: elem 3 | "For testing" 4 | ^ aCollectionClass new: size withAll: elem -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/randomClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | randomClass 3 | "For testing" 4 | ^Smalltalk at: #Random -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readDoubleFrom..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readDoubleFrom: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readFloatFrom..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readFloatFrom: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readInt16From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt16From: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readInt32From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt32From: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readInt64From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt64From: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readUint16From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint16From: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readUint32From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint32From: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/readUint64From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint64From: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/signalException..st: -------------------------------------------------------------------------------- 1 | actions 2 | signalException: anException 3 | "Ansi" 4 | 5 | ^anException signal -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/stringFromBytes..st: -------------------------------------------------------------------------------- 1 | actions 2 | stringFromBytes: aByteArray 3 | ^aByteArray asString -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/timestampFromSeconds.nanos..st: -------------------------------------------------------------------------------- 1 | actions 2 | timestampFromSeconds: seconds nanos: nanoSeconds 3 | 4 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/unixSecondsWithNanosecondsFrom..st: -------------------------------------------------------------------------------- 1 | actions 2 | unixSecondsWithNanosecondsFrom: timestamp 3 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/useFastBulkWrite.st: -------------------------------------------------------------------------------- 1 | defaults 2 | useFastBulkWrite 3 | ^ false -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeDouble.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeDouble: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeFloat.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeFloat: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeInt16.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt16: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeInt32.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt32: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeInt64.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt64: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeUint16.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint16: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeUint32.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint32: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/instance/writeUint64.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint64: value to: stream 3 | self subclassResponsibility -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpPortableUtil.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ 8 | "Default", 9 | "DialectSpecificClass" 10 | ], 11 | "instvars" : [ ], 12 | "name" : "MpPortableUtil", 13 | "type" : "normal" 14 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpSettings.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/at..st: -------------------------------------------------------------------------------- 1 | actions-dictionary 2 | at: key 3 | ^self settingsDict at: key -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/at.ifAbsent..st: -------------------------------------------------------------------------------- 1 | actions-dictionary 2 | at: key ifAbsent: aBlock 3 | ^self settingsDict at: key ifAbsent: aBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/at.ifAbsentPut..st: -------------------------------------------------------------------------------- 1 | actions-dictionary 2 | at: key ifAbsentPut: aBlock 3 | ^self settingsDict at: key ifAbsentPut: aBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/at.put..st: -------------------------------------------------------------------------------- 1 | actions-dictionary 2 | at: key put: value 3 | ^self settingsDict at: key put: value -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/bytesAsString..st: -------------------------------------------------------------------------------- 1 | accessing 2 | bytesAsString: aBoolean 3 | ^self at: #bytesAsString ifAbsentPut: aBoolean -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/bytesAsString.st: -------------------------------------------------------------------------------- 1 | accessing 2 | bytesAsString 3 | ^self at: #bytesAsString ifAbsentPut: [false] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/decodeMode..st: -------------------------------------------------------------------------------- 1 | accessing 2 | decodeMode: aSymbol 3 | "#strict #unknownAsNil #loose" 4 | ^self at: #decodeMode ifAbsentPut: aSymbol -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/decodeMode.st: -------------------------------------------------------------------------------- 1 | accessing 2 | decodeMode 3 | ^self at: #decodeMode ifAbsent: [#strict] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/defaultStreamSize..st: -------------------------------------------------------------------------------- 1 | accessing 2 | defaultStreamSize: anInteger 3 | ^self at: #defaultStreamSize put: anInteger -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/defaultStreamSize.st: -------------------------------------------------------------------------------- 1 | accessing 2 | defaultStreamSize 3 | ^self at: #defaultStreamSize ifAbsentPut: [1024] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/encodeMode..st: -------------------------------------------------------------------------------- 1 | accessing 2 | encodeMode: aSymbol 3 | "#strict #unknownAsNil #loose" 4 | ^self at: #encodeMode ifAbsentPut: aSymbol -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/encodeMode.st: -------------------------------------------------------------------------------- 1 | accessing 2 | encodeMode 3 | ^self at: #encodeMode ifAbsent: [#strict] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/fastBulkWrite..st: -------------------------------------------------------------------------------- 1 | accessing 2 | fastBulkWrite: aBoolean 3 | ^self at: #fastBulkWrite put: aBoolean -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/fastBulkWrite.st: -------------------------------------------------------------------------------- 1 | accessing 2 | fastBulkWrite 3 | ^self at: #fastBulkWrite ifAbsentPut: [MpPortableUtil default useFastBulkWrite] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/formatVersion..st: -------------------------------------------------------------------------------- 1 | accessing 2 | formatVersion: anInteger 3 | ^self at: #formatVersion ifAbsentPut: anInteger -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/formatVersion.st: -------------------------------------------------------------------------------- 1 | accessing 2 | formatVersion 3 | "2008, 2013" 4 | ^self at: #formatVersion ifAbsent: [2013] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/includesKey..st: -------------------------------------------------------------------------------- 1 | actions-dictionary 2 | includesKey: key 3 | ^self settingsDict includesKey: key -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/initialize.st: -------------------------------------------------------------------------------- 1 | initialization 2 | initialize 3 | settingsDict := nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/keys.st: -------------------------------------------------------------------------------- 1 | actions-dictionary 2 | keys 3 | ^self settingsDict keys -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/legacyFormat.st: -------------------------------------------------------------------------------- 1 | accessing 2 | legacyFormat 3 | ^self formatVersion: 2008 -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/printOn..st: -------------------------------------------------------------------------------- 1 | printing 2 | printOn: aStream 3 | aStream nextPutAll: 'a MpSettings('. 4 | self settingsDict printOn: aStream. 5 | aStream nextPutAll: ')'. 6 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/settingsDict.st: -------------------------------------------------------------------------------- 1 | accessing-private 2 | settingsDict 3 | ^ settingsDict ifNil: [settingsDict := IdentityDictionary new] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/stringAsBytes..st: -------------------------------------------------------------------------------- 1 | accessing 2 | stringAsBytes: aBoolean 3 | ^self at: #stringAsBytes ifAbsentPut: aBoolean -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/stringAsBytes.st: -------------------------------------------------------------------------------- 1 | accessing 2 | stringAsBytes 3 | ^self at: #stringAsBytes ifAbsentPut: [false] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/symbolAsString..st: -------------------------------------------------------------------------------- 1 | accessing 2 | symbolAsString: aBoolean 3 | ^self at: #symbolAsString ifAbsentPut: aBoolean -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/instance/symbolAsString.st: -------------------------------------------------------------------------------- 1 | accessing 2 | symbolAsString 3 | ^self at: #symbolAsString ifAbsentPut: [true] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpSettings.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ 9 | "settingsDict" 10 | ], 11 | "name" : "MpSettings", 12 | "type" : "normal" 13 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/MpTypeMapper.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/actionMap.st: -------------------------------------------------------------------------------- 1 | accessing 2 | actionMap 3 | ^ actionMap ifNil: [actionMap := self createActionMap] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/createActionMap.st: -------------------------------------------------------------------------------- 1 | factory 2 | createActionMap 3 | | map | 4 | map := IdentityDictionary new. 5 | self definePrimitivesActionsTo: map. 6 | self defineCompoundsActionsTo: map. 7 | self defineExtsActionsTo: map. 8 | ^map -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/defineCompoundsActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for compounds 2 | defineCompoundsActionsTo: map 3 | "override" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/defineExtsActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for exts 2 | defineExtsActionsTo: map 3 | "override" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/definePrimitivesActionsTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | definePrimitivesActionsTo: map 3 | "override" -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/initialize.st: -------------------------------------------------------------------------------- 1 | class initialization 2 | initialize 3 | "self initialize" 4 | actionMap := nil. 5 | self actionMap 6 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/class/initializeAll.st: -------------------------------------------------------------------------------- 1 | class initialization 2 | initializeAll 3 | "self initializeAll" 4 | self allSubclasses do: [:each | each initialize] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/instance/actionMap.st: -------------------------------------------------------------------------------- 1 | accessing 2 | actionMap 3 | 4 | ^ actionMap ifNil: [actionMap := IdentityDictionary new] -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/instance/defaultActionMap.st: -------------------------------------------------------------------------------- 1 | accessing 2 | defaultActionMap 3 | 4 | ^ self class actionMap -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/instance/initActionMaps.st: -------------------------------------------------------------------------------- 1 | initialization 2 | initActionMaps 3 | "override for custom mapping" 4 | actionMap := nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/MpTypeMapper.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "Object", 4 | "category" : "MessagePack-Core", 5 | "classinstvars" : [ 6 | "actionMap" 7 | ], 8 | "pools" : [ ], 9 | "classvars" : [ ], 10 | "instvars" : [ 11 | "actionMap" 12 | ], 13 | "name" : "MpTypeMapper", 14 | "type" : "normal" 15 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Object.extension/instance/asMpConverted.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-converting 2 | asMpConverted 3 | "Override" 4 | "Only called if you select #loose encodeMode" 5 | ^self asMpMap -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Object.extension/instance/asMpMap.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-converting 2 | asMpMap 3 | "Override" 4 | "Only called if you select #loose encodeMode" 5 | ^Dictionary new -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Object.extension/instance/messagePacked..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-packing 2 | messagePacked: settingBlock 3 | ^ MpEncoder encode: self setting: settingBlock -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Object.extension/instance/messagePacked.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-packing 2 | messagePacked 3 | ^ MpEncoder encode: self -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Object.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | ^nil -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Object.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Object" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Symbol.extension/instance/asMpConverted.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-converting 2 | asMpConverted 3 | ^self asString -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/Symbol.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Symbol" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/True.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | ^#writeTrue: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/True.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "True" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/UndefinedObject.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Core-optimization 2 | mpWriteSelector 3 | ^#writeNil: -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/UndefinedObject.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "UndefinedObject" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/monticello.meta/categories.st: -------------------------------------------------------------------------------- 1 | SystemOrganization addCategory: #'MessagePack-Core'! 2 | -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/monticello.meta/initializers.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Core.package/monticello.meta/initializers.st -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/monticello.meta/package: -------------------------------------------------------------------------------- 1 | (name 'MessagePack-Core') -------------------------------------------------------------------------------- /repository/MessagePack-Core.package/properties.json: -------------------------------------------------------------------------------- 1 | { } -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/.filetree: -------------------------------------------------------------------------------- 1 | { 2 | "separateMethodMetaAndSource" : false, 3 | "noMethodMetaData" : true, 4 | "useCypressPropertiesFile" : true 5 | } -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/DateAndTime.extension/instance/setNanoSeconds..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Pharo-Core 2 | setNanoSeconds: nanoSeconds 3 | nanos := nanoSeconds -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/DateAndTime.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "DateAndTime" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/Integer.extension/instance/digitAt..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Pharo-Core 2 | digitAt: index 3 | "Compatibility with Squeak" 4 | ^ self byteAt: index -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/Integer.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Integer" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhEncodeTypeMapper.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Pharo-Core.package/MpPhEncodeTypeMapper.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhEncodeTypeMapper.class/class/defineTimestampActionTo..st: -------------------------------------------------------------------------------- 1 | actions for exts 2 | defineTimestampActionTo: map 3 | map at: DateAndTime put: #writeTimestamp:. -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhEncodeTypeMapper.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpSqEncodeTypeMapper", 4 | "category" : "MessagePack-Pharo-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpPhEncodeTypeMapper", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/bytesFromString..st: -------------------------------------------------------------------------------- 1 | actions 2 | bytesFromString: aString 3 | (aString isWideString not and: [aString isAsciiString ]) ifTrue: [ ^aString asByteArray]. 4 | ^ZnUTF8Encoder new encodeString: aString -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/encodeTypeMapperClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | encodeTypeMapperClass 3 | ^MpPhEncodeTypeMapper -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/stringFromBytes..st: -------------------------------------------------------------------------------- 1 | actions 2 | stringFromBytes: aByteArray 3 | ^ZnUTF8Encoder new decodeBytes: aByteArray -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/instance/timestampFromSeconds.nanos..st: -------------------------------------------------------------------------------- 1 | actions 2 | timestampFromSeconds: seconds nanos: nanoSeconds 3 | | ts | 4 | ts := DateAndTime fromSeconds: seconds + 2177452800 offset: 0. 5 | nanoSeconds > 0 ifTrue: [ ts setNanoSeconds: nanoSeconds]. 6 | ^ts -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/MpPhPortableUtil.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpSqPortableUtil", 4 | "category" : "MessagePack-Pharo-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpPhPortableUtil", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/monticello.meta/categories.st: -------------------------------------------------------------------------------- 1 | self packageOrganizer ensurePackage: #'MessagePack-Pharo-Core' withTags: #()! 2 | -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/monticello.meta/initializers.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Pharo-Core.package/monticello.meta/initializers.st -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/monticello.meta/package: -------------------------------------------------------------------------------- 1 | (name 'MessagePack-Pharo-Core') -------------------------------------------------------------------------------- /repository/MessagePack-Pharo-Core.package/properties.json: -------------------------------------------------------------------------------- 1 | { } -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/.filetree: -------------------------------------------------------------------------------- 1 | { 2 | "separateMethodMetaAndSource" : false, 3 | "noMethodMetaData" : true, 4 | "useCypressPropertiesFile" : true 5 | } -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/int16..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | int16: anInteger 3 | "Store the given signed, 16-bit integer on this (binary) stream." 4 | 5 | | n | 6 | anInteger < 0 7 | ifTrue: [n := 16r10000 + anInteger] 8 | ifFalse: [n := anInteger]. 9 | self nextPut: (n digitAt: 2). 10 | self nextPut: (n digitAt: 1). 11 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/int16.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | int16 3 | "Answer the next signed, 16-bit integer from this (binary) stream." 4 | | n | 5 | n := self next. 6 | n := (n bitShift: 8) + (self next). 7 | n >= 16r8000 ifTrue: [n := n - 16r10000]. 8 | ^ n 9 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/int32..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | int32: anInteger 3 | "Store the given signed, 32-bit integer on this (binary) stream." 4 | 5 | | n | 6 | anInteger < 0 7 | ifTrue: [n := 16r100000000 + anInteger] 8 | ifFalse: [n := anInteger]. 9 | self nextPut: (n digitAt: 4). 10 | self nextPut: (n digitAt: 3). 11 | self nextPut: (n digitAt: 2). 12 | self nextPut: (n digitAt: 1). 13 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/int32.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | int32 3 | "Answer the next signed, 32-bit integer from this (binary) stream." 4 | "Details: As a fast check for negative number, check the high bit of the first digit" 5 | | n firstDigit | 6 | n := firstDigit := self next. 7 | n := (n bitShift: 8) + self next. 8 | n := (n bitShift: 8) + self next. 9 | n := (n bitShift: 8) + self next. 10 | firstDigit >= 128 ifTrue: [n := -16r100000000 + n]. "decode negative 32-bit integer" 11 | ^ n 12 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/uint16..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint16: anInteger 3 | "Store the given unsigned, 16-bit integer on this (binary) stream." 4 | self nextPut: (anInteger digitAt: 2). 5 | self nextPut: (anInteger digitAt: 1). 6 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/uint16.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint16 3 | "Answer the next unsigned, 16-bit integer from this (binary) stream." 4 | | n | 5 | n := self next. 6 | n := (n bitShift: 8) + (self next). 7 | ^ n 8 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/uint32..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint32: anInteger 3 | "Store the given unsigned, 32-bit integer on this (binary) stream." 4 | self nextPut: (anInteger digitAt: 4). 5 | self nextPut: (anInteger digitAt: 3). 6 | self nextPut: (anInteger digitAt: 2). 7 | self nextPut: (anInteger digitAt: 1). 8 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/uint32.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint32 3 | "Answer the next unsigned, 32-bit integer from this (binary) stream." 4 | | n | 5 | n := self next. 6 | n := (n bitShift: 8) + self next. 7 | n := (n bitShift: 8) + self next. 8 | n := (n bitShift: 8) + self next. 9 | ^ n 10 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/uint64..st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint64: anInteger 3 | "Store the given unsigned, 64-bit integer on this (binary) stream." 4 | self nextPut: (anInteger digitAt: 8). 5 | self nextPut: (anInteger digitAt: 7). 6 | self nextPut: (anInteger digitAt: 6). 7 | self nextPut: (anInteger digitAt: 5). 8 | self nextPut: (anInteger digitAt: 4). 9 | self nextPut: (anInteger digitAt: 3). 10 | self nextPut: (anInteger digitAt: 2). 11 | self nextPut: (anInteger digitAt: 1). 12 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/instance/uint64.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint64 3 | "Answer the next unsigned, 64-bit integer from this (binary) stream." 4 | | n | 5 | n := self next. 6 | n := (n bitShift: 8) + self next. 7 | n := (n bitShift: 8) + self next. 8 | n := (n bitShift: 8) + self next. 9 | n := (n bitShift: 8) + self next. 10 | n := (n bitShift: 8) + self next. 11 | n := (n bitShift: 8) + self next. 12 | n := (n bitShift: 8) + self next. 13 | ^ n 14 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpMemoryWriteStream.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "MpMemoryWriteStream" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/class/defineDoubleActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineDoubleActionTo: map 3 | map at: Float put: #writeDouble:. 4 | map at: BoxedFloat64 put: #writeDouble:. 5 | map at: SmallFloat64 put: #writeDouble: -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/class/defineStrBytesActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineStrBytesActionTo: map 3 | map at: ByteString put: #writeString:. 4 | map at: WideString put: #writeWideString:. -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/instance/stringAsBytes.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | stringAsBytes 3 | self actionMap at: ByteString put: #writeString:. 4 | self actionMap at: WideString put: #writeWideString:. 5 | self actionMap at: ByteSymbol put: #writeString:. 6 | self actionMap at: WideSymbol put: #writeWideString:. -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/instance/stringAsError.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | stringAsError 3 | self actionMap at: ByteString put: #signalError:. 4 | self actionMap at: WideString put: #signalError:. 5 | self actionMap at: ByteSymbol put: #signalError:. 6 | self actionMap at: WideSymbol put: #signalError:. -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/instance/symbolAsError.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | symbolAsError 3 | self actionMap at: ByteSymbol put: #signalError:. 4 | self actionMap at: WideSymbol put: #signalError:. -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/instance/symbolAsString.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | symbolAsString 3 | self actionMap at: ByteSymbol put: #writeString:. 4 | self actionMap at: WideSymbol put: #writeWideString:. -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqEncodeTypeMapper.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpEncodeTypeMapper", 4 | "category" : "MessagePack-Squeak-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpSqEncodeTypeMapper", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/README.md -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/class/activate.st: -------------------------------------------------------------------------------- 1 | class initialization 2 | activate 3 | "MpSqPortableUtil activate" 4 | super initialize. 5 | MpPortableUtil dialectSpecificClass: self -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/bytesFromString..st: -------------------------------------------------------------------------------- 1 | actions 2 | bytesFromString: aString 3 | (aString isWideString not and: [aString isAsciiString ]) ifTrue: [ ^super bytesFromString: aString]. 4 | ^(aString convertToEncoding: #utf8) asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/encodeTypeMapperClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | encodeTypeMapperClass 3 | ^MpSqEncodeTypeMapper -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readDoubleFrom..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readDoubleFrom: stream 3 | | float | 4 | float := Float new: 2. 5 | float at: 1 put: (stream nextNumber: 4). 6 | float at: 2 put: (stream nextNumber: 4). 7 | ^float -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readFloatFrom..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readFloatFrom: stream 3 | "32 bit" 4 | ^ Float fromIEEE32Bit: (stream nextNumber: 4) -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readInt16From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt16From: stream 3 | ^stream int16 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readInt32From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt32From: stream 3 | ^stream int32 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readInt64From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt64From: stream 3 | ^stream int64 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readUint16From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint16From: stream 3 | ^stream uint16 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readUint32From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint32From: stream 3 | ^stream uint32 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/readUint64From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint64From: stream 3 | ^stream uint64 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/stringFromBytes..st: -------------------------------------------------------------------------------- 1 | actions 2 | stringFromBytes: aByteArray 3 | ^aByteArray asString convertFromEncoding: #utf8 -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/timestampFromSeconds.nanos..st: -------------------------------------------------------------------------------- 1 | actions 2 | timestampFromSeconds: seconds nanos: nanoSeconds 3 | | microseconds ts | 4 | microseconds := seconds * 1000000. 5 | nanoSeconds isZero ifFalse: [ | microsPart rem | 6 | rem := nanoSeconds rem: 1000. 7 | rem = 0 ifTrue: [ 8 | microsPart := nanoSeconds / 1000. 9 | ] ifFalse: [ 10 | microsPart := nanoSeconds * 0.001. 11 | ]. 12 | microseconds := microseconds + microsPart. 13 | ]. 14 | ts := DateAndTime utcMicroseconds: microseconds offset: 0. 15 | ^ts -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/unixSecondsWithNanosecondsFrom..st: -------------------------------------------------------------------------------- 1 | actions 2 | unixSecondsWithNanosecondsFrom: timestamp 3 | | duration secs nanos | 4 | duration := (timestamp offset: 0) - DateAndTime unixEpoch. 5 | secs := duration asSeconds. 6 | nanos := duration nanoSeconds. 7 | (nanos ~= 0 and: [duration < 0 nanoSeconds]) ifTrue: [ 8 | secs := secs - 1. 9 | nanos := 1000000000 + nanos. 10 | ]. 11 | ^Array with: secs with: nanos -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeDouble.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeDouble: value to: stream 3 | self writeUint32: (value at:1) to: stream. 4 | self writeUint32: (value at:2) to: stream. 5 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeFloat.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeFloat: value to: stream 3 | self writeInt32: value asIEEE32BitWord to: stream -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeInt16.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt16: value to: stream 3 | stream int16: value -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeInt32.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt32: value to: stream 3 | stream int32: value -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeInt64.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt64: value to: stream 3 | stream int64: value -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeUint16.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint16: value to: stream 3 | stream uint16: value -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeUint32.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint32: value to: stream 3 | stream uint32: value -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/instance/writeUint64.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint64: value to: stream 3 | stream uint64: value -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/MpSqPortableUtil.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpPortableUtil", 4 | "category" : "MessagePack-Squeak-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpSqPortableUtil", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/PositionableStream.extension/instance/uint64.st: -------------------------------------------------------------------------------- 1 | *MessagePack-Squeak-Core 2 | uint64 3 | "Answer the next unsigned, 64-bit integer from this (binary) stream." 4 | 5 | | n | 6 | n := self next. 7 | n := (n bitShift: 8) + self next. 8 | n := (n bitShift: 8) + self next. 9 | n := (n bitShift: 8) + self next. 10 | n := (n bitShift: 8) + self next. 11 | n := (n bitShift: 8) + self next. 12 | n := (n bitShift: 8) + self next. 13 | n := (n bitShift: 8) + self next. 14 | ^ n 15 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/PositionableStream.extension/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "PositionableStream" 3 | } -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/monticello.meta/categories.st: -------------------------------------------------------------------------------- 1 | SystemOrganization addCategory: #'MessagePack-Squeak-Core'! 2 | -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/monticello.meta/initializers.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePack-Squeak-Core.package/monticello.meta/initializers.st -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/monticello.meta/package: -------------------------------------------------------------------------------- 1 | (name 'MessagePack-Squeak-Core') -------------------------------------------------------------------------------- /repository/MessagePack-Squeak-Core.package/properties.json: -------------------------------------------------------------------------------- 1 | { } -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/Double.extension/instance/mpWriteSelector.st: -------------------------------------------------------------------------------- 1 | *MessagePack-VW-optimization 2 | mpWriteSelector 3 | ^#writeDouble: -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/Double.extension/properties.json: -------------------------------------------------------------------------------- 1 | { "name" : "Double" } -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwEncodeTypeMapper.class/class/defineDoubleActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineDoubleActionTo: map 3 | "Some dialect does not support Double" 4 | map at: Double put: #writeDouble: -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwEncodeTypeMapper.class/class/defineFloatActionTo..st: -------------------------------------------------------------------------------- 1 | actions for primitives 2 | defineFloatActionTo: map 3 | "Suppose 32 bit float - Some dialect does not support it" 4 | map at: Float put: #writeFloat: -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwEncodeTypeMapper.class/instance/stringAsBytes.st: -------------------------------------------------------------------------------- 1 | encode customization 2 | stringAsBytes 3 | self actionMap at: ByteString put: #writeString:. 4 | self actionMap at: TwoByteString put: #writeWideString:. 5 | self actionMap at: FourByteString put: #writeWideString:. 6 | self actionMap at: ByteSymbol put: #writeString:. 7 | self actionMap at: TwoByteSymbol put: #writeWideString:. 8 | self actionMap at: FourByteString put: #writeWideString:. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwEncodeTypeMapper.class/properties.json: -------------------------------------------------------------------------------- 1 | { "name" : "MpVwEncodeTypeMapper", 2 | "super" : "MpEncodeTypeMapper" } -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/class/initialize.st: -------------------------------------------------------------------------------- 1 | class initialization 2 | initialize 3 | "MpVwPortableUtil initialize" 4 | super initialize. 5 | MpPortableUtil dialectSpecificClass: self -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/bytesFromString..st: -------------------------------------------------------------------------------- 1 | actions 2 | bytesFromString: aString 3 | ^aString asByteArrayEncoding: #utf8 -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/encodeTypeMapperClass.st: -------------------------------------------------------------------------------- 1 | factory 2 | encodeTypeMapperClass 3 | ^MpVwEncodeTypeMapper -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readDoubleFrom..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readDoubleFrom: stream 3 | | bytes | 4 | bytes := stream next: 8. 5 | UninterpretedBytes isBigEndian ifFalse: [ bytes := bytes reverse]. 6 | ^ bytes changeClassTo: Double. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readFloatFrom..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readFloatFrom: stream 3 | "32 bit" 4 | | bytes | 5 | bytes := stream next: 4. 6 | UninterpretedBytes isBigEndian ifFalse: [ bytes := bytes reverse]. 7 | ^ bytes changeClassTo: Float. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readInt16From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt16From: stream 3 | ^ (UninterpretedBytes from: (stream next: 2)) shortAt: 1 bigEndian: true. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readInt32From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt32From: stream 3 | ^ (UninterpretedBytes from: (stream next: 4)) longAt: 1 bigEndian: true. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readInt64From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readInt64From: stream 3 | ^ (UninterpretedBytes from: (stream next: 8)) longLongAt: 1 bigEndian: true. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readUint16From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint16From: stream 3 | ^ (UninterpretedBytes from: (stream next: 2)) unsignedShortAt: 1 bigEndian: true. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readUint32From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint32From: stream 3 | ^ (UninterpretedBytes from: (stream next: 4)) unsignedLongAt: 1 bigEndian: true. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/readUint64From..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | readUint64From: stream 3 | ^ (UninterpretedBytes from: (stream next: 8)) unsignedLongLongAt: 1 bigEndian: true. -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/signalException..st: -------------------------------------------------------------------------------- 1 | actions 2 | signalException: anException 3 | ^anException raise -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/useFastBulkWrite.st: -------------------------------------------------------------------------------- 1 | defaults 2 | useFastBulkWrite 3 | ^ true -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeDouble.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeDouble: value to: stream 3 | value isBigEndian ifTrue: [ 4 | 1 to: 8 do: [:idx | stream nextPut: (value basicAt: idx)] 5 | ] ifFalse: [ 6 | 8 to: 1 by: -1 do: [:idx | stream nextPut: (value basicAt: idx)] 7 | ] -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeFloat.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeFloat: value to: stream 3 | value isBigEndian ifTrue: [ 4 | 1 to: 4 do: [:idx | stream nextPut: (value basicAt: idx)] 5 | ] ifFalse: [ 6 | 4 to: 1 by: -1 do: [:idx | stream nextPut: (value basicAt: idx)] 7 | ] -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeInt16.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt16: value to: stream 3 | | bytes | 4 | bytes := UninterpretedBytes new: 2. 5 | bytes shortAt: 1 put: value bigEndian: true. 6 | stream nextPutAll: bytes asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeInt32.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt32: value to: stream 3 | | bytes | 4 | bytes := UninterpretedBytes new: 4. 5 | bytes longAt: 1 put: value bigEndian: true. 6 | stream nextPutAll: bytes asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeInt64.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeInt64: value to: stream 3 | | bytes | 4 | bytes := UninterpretedBytes new: 8. 5 | bytes longLongAt: 1 put: value bigEndian: true. 6 | stream nextPutAll: bytes asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeUint16.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint16: value to: stream 3 | | bytes | 4 | bytes := UninterpretedBytes new: 2. 5 | bytes unsignedShortAt: 1 put: value bigEndian: true. 6 | stream nextPutAll: bytes asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeUint32.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint32: value to: stream 3 | | bytes | 4 | bytes := UninterpretedBytes new: 4. 5 | bytes unsignedLongAt: 1 put: value bigEndian: true. 6 | stream nextPutAll: bytes asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/instance/writeUint64.to..st: -------------------------------------------------------------------------------- 1 | actions-stream 2 | writeUint64: value to: stream 3 | | bytes | 4 | bytes := UninterpretedBytes new: 8. 5 | bytes unsignedLongLongAt: 1 put: value bigEndian: true. 6 | stream nextPutAll: bytes asByteArray -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/MpVwPortableUtil.class/properties.json: -------------------------------------------------------------------------------- 1 | { "name" : "MpVwPortableUtil", 2 | "super" : "MpPortableUtil" } -------------------------------------------------------------------------------- /repository/MessagePack-VW.package/properties.json: -------------------------------------------------------------------------------- 1 | { "prerequisiteParcels" : [ [ "MessagePack-Core", 2 | "" ] ] } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/.filetree: -------------------------------------------------------------------------------- 1 | { 2 | "separateMethodMetaAndSource" : false, 3 | "noMethodMetaData" : true, 4 | "useCypressPropertiesFile" : true 5 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePackTest.package/MpPackUnpackTestCase.class/README.md -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/complexArraysArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | complexArraysArray 3 | ^ self complexCollectionSizes collect: [:each | self createComplexArraySized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/complexCollectionSizes.st: -------------------------------------------------------------------------------- 1 | private 2 | complexCollectionSizes 3 | ^ #(0 1 31 32) "For avoiding timeout" -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/complexMapsArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | complexMapsArray 3 | ^ self complexCollectionSizes collect: [:each | self createComplexMapSized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createArraySized..st: -------------------------------------------------------------------------------- 1 | private 2 | createArraySized: size 3 | | col idx | 4 | col := OrderedCollection withAll: #(true false nil 1 -1 3.14 -3.14). 5 | "col add: (ByteArray new: 100 withAll: 100). 6 | col add: (Array new: 200 withAll: #(2)). 7 | col add: (Dictionary new at: 3 put: 333; yourself)." 8 | idx := self atRandom: col size. 9 | ^self newCollection: Array sized: size withAll: (col at: idx) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createByteStringSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createByteStringSized: size 3 | ^self createStringSized: size -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createComplexArraySized..st: -------------------------------------------------------------------------------- 1 | private 2 | createComplexArraySized: size 3 | | col dict | 4 | col := OrderedCollection new. 5 | col add: (self newCollection: ByteArray sized: 100 withAll: 100). 6 | col add: (self newCollection: Array sized: 200 withAll: #(2)). 7 | col add: (Dictionary new at: 3 put: 333; yourself). 8 | 9 | dict := Dictionary new: size. 10 | 1 to: size do: [:idx | dict at: (idx printString asByteArray) put: (self atRandom: col size)]. 11 | ^dict -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createComplexMapSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createComplexMapSized: size 3 | | col idx | 4 | col := OrderedCollection new. 5 | col add: (self newCollection: ByteArray sized: 100 withAll: 100). 6 | col add: (self newCollection: Array sized: 200 withAll: #(2)). 7 | col add: (Dictionary new at: 3 put: 333; yourself). 8 | idx := self atRandom: col size. 9 | ^ Array new: size withAll: (col at: idx) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createExtSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createExtSized: size 3 | | data | 4 | data := self createRawBytesSized: size. 5 | ^MpExtValue typeCode: 0 data: data 6 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createFixExtSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createFixExtSized: size 3 | | data | 4 | data := self createRawBytesSized: size. 5 | ^MpFixextValue typeCode: 0 data: data 6 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createRawBytesSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createRawBytesSized: size 3 | ^ self newCollection: ByteArray sized: size withAll: (self atRandom: 255) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createSimpleArraySized..st: -------------------------------------------------------------------------------- 1 | private 2 | createSimpleArraySized: size 3 | | col idx | 4 | col := OrderedCollection withAll: #(true false nil 1 -1 3.14 -3.14). 5 | idx := self atRandom: col size. 6 | ^self newCollection: Array sized: size withAll: (col at: idx) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/createSimpleMapSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createSimpleMapSized: size 3 | | values dic | 4 | values := #(true false nil 1 -1 3.14 -3.14). 5 | dic := Dictionary new: size. 6 | 1 to: size do: [:idx | dic at: idx put: (values at: (idx - 1 \\ values size + 1))]. 7 | ^dic 8 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/floatsArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | floatsArray 3 | ^ #(3.14159 3.141592653589793) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/integersArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | integersArray 3 | ^ #(0 1 126 127 -1 -2 -31 -32 -128 -33 -32768 -129 128 32767 -2147483648 -32769 32768 2147483647 -9223372036854775808 -2147483649 2147483648 9223372036854775807 ) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/mapSizes.st: -------------------------------------------------------------------------------- 1 | private 2 | mapSizes 3 | ^ #(0 1 31 32 65535 65536) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/max32Timestamp.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | max32Timestamp 3 | ^ MpPortableUtil default timestampFromSeconds: 1 << 32 nanos: 0 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/max64Timestamp.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | max64Timestamp 3 | ^ MpPortableUtil default timestampFromSeconds: 1 << 34 nanos: 999999999 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/max96Timestamp.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | max96Timestamp 3 | ^ MpPortableUtil default timestampFromSeconds: (1 << 63) - 1 nanos: 999999999 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/min96Timestamp.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | min96Timestamp 3 | ^ MpPortableUtil default timestampFromSeconds: (1 << 63) negated nanos: 0 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/rawBytesArray.st: -------------------------------------------------------------------------------- 1 | private 2 | rawBytesArray 3 | ^ self rawBytesSizes collect: [:each | self createRawBytesSized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/rawBytesSizes.st: -------------------------------------------------------------------------------- 1 | private 2 | rawBytesSizes 3 | ^ #(0 1 31 32 65535 65536) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/rawExtValueArray.st: -------------------------------------------------------------------------------- 1 | private 2 | rawExtValueArray 3 | | exts | 4 | exts := self rawBytesSizes collect: [:each | self createExtSized: each]. 5 | 1 to: exts size do: [:idx | (exts at: idx) typeCode: idx]. 6 | ^exts -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/rawFixExtValueArray.st: -------------------------------------------------------------------------------- 1 | private 2 | rawFixExtValueArray 3 | | sizes exts | 4 | sizes := #(1 2 4 8 16). 5 | exts := sizes collect: [:each | self createFixExtSized: each]. 6 | 1 to: exts size do: [:idx | (exts at: idx) typeCode: idx]. 7 | ^exts -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/rawStringArray.st: -------------------------------------------------------------------------------- 1 | private 2 | rawStringArray 3 | ^ self rawBytesSizes collect: [:each | self createByteStringSized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/simpleArraysArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | simpleArraysArray 3 | ^ self simpleCollectionSizes collect: [:each | self createSimpleArraySized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/simpleCollectionSizes.st: -------------------------------------------------------------------------------- 1 | private 2 | simpleCollectionSizes 3 | ^ #(0 1 31 32 65535 65536) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/simpleMapsArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | simpleMapsArray 3 | ^ self simpleCollectionSizes collect: [:each | self createSimpleMapSized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackArray.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackArray 3 | "self debug: #testPackUnpackArray" 4 | self simpleArraysArray do: [:each | | packed unpacked | 5 | packed := each messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [self collectionEquals: unpacked with: each] 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackBinBytes.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackBinBytes 3 | "self debug: #testPackUnpackBinBytes" 4 | self rawBytesArray do: [:each | | packed unpacked | 5 | packed := each messagePacked: [:settings | settings formatVersion: 2013]. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [self collectionEquals: unpacked with: each]. 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackComplexArray.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackComplexArray 3 | "self debug: #testPackUnpackComplexArray" 4 | self complexArraysArray do: [:each | | packed unpacked | 5 | packed := each messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [self collectionEquals: unpacked with: each] 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackComplexMap.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackComplexMap 3 | "self debug: #testPackUnpackComplexMap" 4 | self simpleMapsArray do: [:each | | packed unpacked | 5 | packed := each messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [self collectionEquals: unpacked with: each] 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackFalse.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackFalse 3 | "self debug: #testPackUnpackFalse" 4 | | packed unpacked | 5 | packed := false messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | self should: [packed = (ByteArray with: MpConstants boolFalse)]. 8 | unpacked := Object fromMessagePack: packed. 9 | self should: [unpacked = false] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackFloatingPoint.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackFloatingPoint 3 | "self debug: #testPackUnpackFloatingPoint" 4 | self floatsArray do: [:each | | packed unpacked | 5 | packed := each messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [unpacked = each] 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackInteger.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackInteger 3 | "self debug: #testPackUnpackInteger" 4 | self integersArray do: [:each | | packed unpacked | 5 | packed := each messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [unpacked = each] 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackMap.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackMap 3 | "self debug: #testPackUnpackMap" 4 | self simpleMapsArray do: [:each | | packed unpacked | 5 | packed := each messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [self collectionEquals: unpacked with: each] 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackNil.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackNil 3 | "self debug: #testPackUnpackNil" 4 | | packed unpacked | 5 | packed := nil messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | self should: [packed = (ByteArray with: MpConstants undefinedNil)]. 8 | unpacked := Object fromMessagePack: packed. 9 | self should: [unpacked = nil] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackStrBytes.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackStrBytes 3 | "self debug: #testPackUnpackStrBytes" 4 | self rawStringArray do: [:each | | packed unpacked | 5 | packed := each messagePacked: [:settings | settings formatVersion: 2013]. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed setting: [:settings | settings formatVersion: 2013]. 8 | self should: [unpacked = each]. 9 | ] 10 | 11 | 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/testPackUnpackTrue.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackTrue 3 | "self debug: #testPackUnpackTrue" 4 | | packed unpacked | 5 | packed := true messagePacked. 6 | self should: [packed isMemberOf: ByteArray]. 7 | self should: [packed = (ByteArray with: MpConstants boolTrue)]. 8 | unpacked := Object fromMessagePack: packed. 9 | self should: [unpacked = true] 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/instance/unixEpochTimestamp.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | unixEpochTimestamp 3 | ^ MpPortableUtil default timestampFromSeconds: 0 nanos: 0 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpPackUnpackTestCase.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpTestCase", 4 | "category" : "MessagePackTest-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpPackUnpackTestCase", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePackTest.package/MpSettingsTestCase.class/README.md -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/arrayWithNil.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | arrayWithNil 3 | ^ Array with: nil with: 2 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/arrayWithUnknown.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | arrayWithUnknown 3 | ^ Array with: Date today with: 2 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/complexDictionaryAfterConverted.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | complexDictionaryAfterConverted 3 | | dic dicIn| 4 | dic := Dictionary new. 5 | dicIn := Dictionary new. 6 | 7 | self simpleIdentityDictionary keysAndValuesDo: [:k :v | dicIn at: (MpPortableUtil default bytesFromString: k) put: (MpPortableUtil default bytesFromString: v)]. 8 | 9 | dic at: (MpPortableUtil default bytesFromString: #key1) put: (MpPortableUtil default bytesFromString: 'aaa'). 10 | dic at: (MpPortableUtil default bytesFromString: #key2) put: dicIn. 11 | ^dic -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/complexIdentityDictionary.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | complexIdentityDictionary 3 | | dic | 4 | dic := IdentityDictionary new. 5 | dic at: #key1 put: 'aaa'. 6 | dic at: #key2 put: self simpleIdentityDictionary. 7 | ^dic -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/dictionaryWithNil.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | dictionaryWithNil 3 | | dic | 4 | dic := Dictionary new. 5 | dic at: 'key1' put: nil. 6 | dic at: 'key2' put: 'bbb'. 7 | ^dic -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/dictionaryWithUnknown.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | dictionaryWithUnknown 3 | | dic | 4 | dic := Dictionary new. 5 | dic at: 'key1' put: Time now. 6 | dic at: 'key2' put: 'bbb'. 7 | ^dic -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/simpleIdentityDictionary.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | simpleIdentityDictionary 3 | | dic | 4 | dic := IdentityDictionary new. 5 | dic at: #key1 put: 'aaa'. 6 | dic at: #key2 put: 'bbb'. 7 | ^dic -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/simpleString.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | simpleString 3 | ^'This is a test' -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/simpleStringContainedArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | simpleStringContainedArray 3 | ^ #('this' 'is' 'a' 'test') -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/stringSizes.st: -------------------------------------------------------------------------------- 1 | private 2 | stringSizes 3 | ^ #(0 1 31 32 65535 65536) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/stringsArray.st: -------------------------------------------------------------------------------- 1 | fixtures 2 | stringsArray 3 | ^ self stringSizes collect: [:each | self createStringSized: each] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/testPackStringAsBytes.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackStringAsBytes 3 | "self debug: #testPackStringAsBytes" 4 | | bytes | 5 | self should: [self simpleString messagePacked:[:se | se legacyFormat]] raise: MpError. 6 | 7 | bytes := self simpleString messagePacked: [:settings | settings legacyFormat; stringAsBytes: true]. 8 | 9 | self assert: (bytes = (self simpleString asByteArray messagePacked:[:se | se legacyFormat])). 10 | 11 | self deny: (bytes = (self simpleString asByteArray messagePacked)) 12 | 13 | 14 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/testPackUnknownContainedArray.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnknownContainedArray 3 | "self debug: #testPackUnknownContainedArray" 4 | | bytes | 5 | self should: [self arrayWithUnknown messagePacked] raise: MpError. 6 | 7 | bytes := self arrayWithUnknown messagePacked: [:settings | settings encodeMode: #unknownAsNil]. 8 | 9 | self assert: (bytes = self arrayWithNil messagePacked) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/testPackUnknownContainedDictionary.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnknownContainedDictionary 3 | "self debug: #testPackUnknownContainedDictionary" 4 | | bytes | 5 | self should: [self dictionaryWithUnknown messagePacked] raise: MpError. 6 | 7 | bytes := self dictionaryWithUnknown messagePacked: [:settings | settings stringAsBytes: true; encodeMode: #unknownAsNil]. 8 | 9 | self assert: (bytes = (self dictionaryWithNil messagePacked: [:settings | settings stringAsBytes: true])) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/instance/testPackUnpackStrings.st: -------------------------------------------------------------------------------- 1 | testing 2 | testPackUnpackStrings 3 | "self debug: #testPackUnpackStrings" 4 | self stringsArray do: [:each | | packed unpacked | 5 | packed := each messagePacked: [:se | se stringAsBytes: true]. 6 | self should: [packed isMemberOf: ByteArray]. 7 | unpacked := Object fromMessagePack: packed. 8 | self should: [self collectionEquals: unpacked asString with: each] 9 | ] -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpSettingsTestCase.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpTestCase", 4 | "category" : "MessagePackTest-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpSettingsTestCase", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePackTest.package/MpStringUnpackTestCase.class/README.md -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/instance/encodeRandomBin16..st: -------------------------------------------------------------------------------- 1 | private 2 | encodeRandomBin16: size 3 | | bytes encoded | 4 | bytes := MpPackUnpackTestCase new createRawBytesSized: size. 5 | encoded := bytes messagePacked at: 1 put: MpConstants bin16; yourself. 6 | ^{bytes. encoded} -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/instance/encodeRandomBin32..st: -------------------------------------------------------------------------------- 1 | private 2 | encodeRandomBin32: size 3 | | bytes encoded | 4 | bytes := MpPackUnpackTestCase new createRawBytesSized: size. 5 | encoded := bytes messagePacked at: 1 put: MpConstants bin32; yourself. 6 | ^{bytes. encoded} -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/instance/encodeRandomBin8..st: -------------------------------------------------------------------------------- 1 | private 2 | encodeRandomBin8: size 3 | | bytes encoded | 4 | bytes := MpPackUnpackTestCase new createRawBytesSized: size. 5 | encoded := (ByteArray with: MpConstants bin8 with: size), bytes. 6 | ^{bytes. encoded} -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/instance/encodeString8..st: -------------------------------------------------------------------------------- 1 | private 2 | encodeString8: aString 3 | | byteStream | 4 | byteStream := WriteStream with: (ByteArray with: MpConstants str8 with: aString size). 5 | byteStream nextPutAll: aString asByteArray. 6 | ^ byteStream contents 7 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/instance/testUnpackString8.st: -------------------------------------------------------------------------------- 1 | testing 2 | testUnpackString8 3 | "self debug: #testUnpackString8" 4 | | str1 data1 data2 str2 | 5 | str1 := 'hi'. 6 | data1 := self encodeString8: str1. 7 | self assert: ((MpMessagePack unpack: data1) = str1). 8 | 9 | str2 := 'Str format family stores an byte array in 1, 2, 3, or 5 bytes of extra bytes in addition to the size of the byte array'. 10 | data2 := self encodeString8: str2. 11 | self assert: ((MpMessagePack unpack: data2) = str2). 12 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/methodProperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "instance" : { 3 | "encodeRandomBin32:" : "mu 8/12/2013 01:17", 4 | "encodeRandomBin16:" : "mu 8/12/2013 01:17", 5 | "testUnpackString8" : "MasashiUmezawa 6/4/2016 14:13", 6 | "encodeRandomBin8:" : "mu 8/12/2013 01:14", 7 | "testUnpackBinFamilyBytes" : "mu 8/12/2013 01:16", 8 | "encodeString8:" : "mu 8/12/2013 00:27" 9 | }, 10 | "class" : { } 11 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpStringUnpackTestCase.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "MpTestCase", 4 | "category" : "MessagePackTest-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpStringUnpackTestCase", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePackTest.package/MpTestCase.class/README.md -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/instance/atRandom..st: -------------------------------------------------------------------------------- 1 | private 2 | atRandom: integer 3 | "For portability" 4 | ^ (MpPortableUtil default randomClass new next * integer) truncated + 1 -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/instance/collectionEquals.with..st: -------------------------------------------------------------------------------- 1 | private 2 | collectionEquals: aCollection with: otherCollection 3 | ^MpPortableUtil default collectionEquals: aCollection with: otherCollection -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/instance/createStringSized..st: -------------------------------------------------------------------------------- 1 | private 2 | createStringSized: size 3 | "TODO - create utf8 string" 4 | ^ self newCollection: String sized: size withAll: (Character value: (32 + (self atRandom: 94))) -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/instance/newCollection.sized.withAll..st: -------------------------------------------------------------------------------- 1 | private 2 | newCollection: aCollectionClass sized: size withAll: elem 3 | ^MpPortableUtil default newCollection: aCollectionClass sized: size withAll: elem -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/methodProperties.json: -------------------------------------------------------------------------------- 1 | { 2 | "instance" : { 3 | "collectionEquals:with:" : "mu 6/23/2011 12:42", 4 | "newCollection:sized:withAll:" : "mu 6/23/2011 12:09", 5 | "atRandom:" : "mu 6/23/2011 12:08", 6 | "createStringSized:" : "MasashiUmezawa 11/12/2016 23:44" 7 | }, 8 | "class" : { } 9 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/MpTestCase.class/properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "commentStamp" : "", 3 | "super" : "TestCase", 4 | "category" : "MessagePackTest-Core", 5 | "classinstvars" : [ ], 6 | "pools" : [ ], 7 | "classvars" : [ ], 8 | "instvars" : [ ], 9 | "name" : "MpTestCase", 10 | "type" : "normal" 11 | } -------------------------------------------------------------------------------- /repository/MessagePackTest.package/monticello.meta/categories.st: -------------------------------------------------------------------------------- 1 | SystemOrganization addCategory: #MessagePackTest! 2 | SystemOrganization addCategory: 'MessagePackTest-Core'! 3 | -------------------------------------------------------------------------------- /repository/MessagePackTest.package/monticello.meta/initializers.st: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msgpack/msgpack-smalltalk/3e3823625409cbd45f7c5bf79be94d1e9135baa9/repository/MessagePackTest.package/monticello.meta/initializers.st -------------------------------------------------------------------------------- /repository/MessagePackTest.package/monticello.meta/package: -------------------------------------------------------------------------------- 1 | (name 'MessagePackTest') -------------------------------------------------------------------------------- /repository/MessagePackTest.package/properties.json: -------------------------------------------------------------------------------- 1 | { } --------------------------------------------------------------------------------